DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10558

encodeURL form submit doesn't include hidden form variables

           Summary: encodeURL form submit doesn't include hidden form
                    variables
           Product: Tomcat 4
           Version: 4.0.4 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Coyote HTTP/1.1
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When encodeURL is used with a form with ENCTYPE="multipart/form-data", hidden 
values are not included in the response.


I have a jsp page that calls a servlet.

The jsp has 2 forms.

Form 1
<form method="post" action="<%=response.encodeURL(myservlet)%>" name="form_1">
<input type="hidden" name="test1" value="true">
<input type="submit" name="submit" value="submit"><br>
</form>



Form 2
<form method="post" action="<%=response.encodeUrl(myservlet)%>" name="form_2" 
ENCTYPE="multipart/form-data">
<input type="hidden" name="test2" value="true">
<input type="file" size="15" name="file"><br>
<input type="submit" name="submit" value="submit"><br>
</form>


myservlet simply writes out what's in the request to see what's inside.

Enumeration enum = request.getParameterNames();
while (enum.hasMoreElements()) {
         System.out.println(enum.nextElement());
     }

When I submit Form 1, myservlet prints out the hidden value while Form 2 does 
not.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to