Hi,

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.

Has anyone else seen this problem?  Is there a way to prevent these
parameters from being stripped?

I've included a sample JSP page to demonstrate this error below.

Thanks,

Jonathan


---- 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]

Reply via email to