users@glassfish.java.net

Re: Servlet not getting POST data?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 20 Mar 2007 11:47:00 -0400

Hi "dailysun",

can you change the http-listener blocking-enabled="false" to
blocking-enabled="true" and see if that fix the problem? If that fix the
problem, file a bug with a test case and assign it to .... me :-)

Thanks

-- Jeanfrancois

glassfish_at_javadesktop.org wrote:
> Hi Jan,
>
> The problem occurs randomly. Sometimes it happens, sometimes it doesn't. It doesn't seem to be tied to any specific form values entered. In one JSP, I have the form, i.e. (I left out the validate() javascript):
>
> [code]
> <form name=form1 method=POST action="./support/process-general.jsp" onSubmit='javascript:return validate()'>
> <input type="textbox" name="value1">
> <input type="hidden" name="section" value="step2">
> <input type="submit">
> </form>
> [/code]
>
> In the other JSP, I do this:
> [code]
> String section = request.getParameter("section");
> if(section!=null && section.equals("step2")){
> // blablabla
> }else{
> System.err.println("Error - no form values received");
> }
> [/code]
>
> At random, the section variable (and therefore, I assume, the entire form data) is not received and I get my System.err message. This is the standard form. I don't see any exceptions or errors in server.log. Is there another place where I can monitor this problem?
>
> dailysun
> [Message sent by forum member 'dailysun' (dailysun)]
>
> http://forums.java.net/jive/thread.jspa?messageID=208886
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>