users@glassfish.java.net

Re: Servlet not getting POST data?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Mon, 12 Mar 2007 09:28:45 -0700

glassfish_at_javadesktop.org wrote On 03/09/07 05:54 PM,:

>Hi Jan,
>
>You are right. What I wrote about the query string was gibberish - that was just for testing, but I didn't figure correctly that the POST will not include values in the query string. In the actual Servlet, I get the form data using the standard request.getParameter("xyz") format (which is set by the default servlet code to work with POST and GET).
>
>So, I agree - the fact that the query string does not show anything is not determinative. But the problem exists even with request.getParameter("xyz").
>
>

I'm unable to reproduce this, i.e., getParameter() returns the POSTed
form parameter, as expected,
regardless of whether I access the webapp at "/" or its designated
context root.

Could you send your test case so I can take a look?

Thanks,


Jan


>dailysun.
>[Message sent by forum member 'dailysun' (dailysun)]
>
>http://forums.java.net/jive/thread.jspa?messageID=207207
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>