On Sun, Jun 13, 2010 at 7:36 AM, <glassfish_at_javadesktop.org> wrote:
> I'm facing very strange behavior with my GlassFish application server where the following code is not sending the request parameters to the server. (Well the request parameters are having null values). But if I change the method do 'get' everything is fine.
> System.out.println("~~~~~~~~~~~~~~~~~~~~" + request.getQueryString());
> Result with post : ~~~~~~~~~~~~~~~~~~~~null
> Result with get : ~~~~~~~~~~~~~~~~~~~~test=This+is+the+data
No kidding. :-)
An HTTP GET uses the "query string" to pass parameters; a POST
does not. You might want to read the Servlet API doc to understand
how to properly access parameters in a request.
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan