I have attached a simple servlet, and form. This servlet works
correctly with Tomcat 3.2.1. With Tomcat 4 Beta5, the getParameter
calls return null. Note that this problem is when using the builtin
HTTP connector. This must be a bug!
simple servlet -
import java.io.*;
import
I don't think this patch is what we really want to do.
Currently, the code is testing for all of the following conditions before
trying to parse request parameters from the input stream:
1) The HTTP method is POST
2) The content length is greater than zero
3) The servlet has never called
Remy,
So do agree that this is a bug then? Should I try to fix it? I have not tried
to access the CVS archives yet, and I don't know if I should be trusted
to make any changes anyway :-)
Mark
Reading the URL parameters is done just above :
// Parse any parameters specified in the query
[I sent this to the users list on Friday - someone sent me email
telling me I should send it to this group - sorry for the double
post]
I just started using TomCat B5 using the builtin HTTPConnector.
When POST-ing a form, none of the name-value pairs of the
Query string make it through.
I
[I sent this to the users list on Friday - someone sent me email
telling me I should send it to this group - sorry for the double
post]
I just started using TomCat B5 using the builtin HTTPConnector.
When POST-ing a form, none of the name-value pairs of the
Query string make it through.