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=26541>. 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=26541 Empty request parameters are stripped as the request passes through the JK connector Summary: Empty request parameters are stripped as the request passes through the JK connector Product: Tomcat 4 Version: Unknown Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: Connector:Coyote JK 2 AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've noticed that empty request parameters are being stripped as they go through the JK connector. For example, if I use the URL http://localhost/Test.jsp?a=1&b=&c=3, the parameter "b" will be null. When not going through the connector, the parameter "b" is empty string. I've tested this with iplanet using the JK 1.2.4 connector and on both Apache 1.3 and IIS using the JK 2.0.2 connector. I've included a sample JSP page to demonstrate this error below. ---- Test.jsp ---- <%-- Try going to this page with the URL http://localhost/Test.jsp?a=1&b=&c=3 - -%> <%@ page import="java.util.Enumeration" %> <html> <% Enumeration parameterNames = request.getParameterNames(); while (parameterNames.hasMoreElements()) { String parameterName = (String)parameterNames.nextElement(); String[] parameterValues = request.getParameterValues(parameterName); String parameterValueString = parameterValues[0]; for (int i = 1; i < parameterValues.length; i++) { parameterValueString += ", "; parameterValueString += parameterValues[i]; } out.println(parameterName + " = " + parameterValueString + "<br>"); } %> </html> ------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]