You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/14 22:36:31 UTC
DO NOT REPLY [Bug 16078] New: -
Request parameter aggregation when using is no longer working as expected.
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=16078>.
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=16078
Request parameter aggregation when using <jsp:param> is no longer working as expected.
Summary: Request parameter aggregation when using <jsp:param> is
no longer working as expected.
Product: Tomcat 5
Version: Nightly Build
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Jasper2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: Ryan.Lubke@Sun.COM
Given the following request line:
GET /test.jsp?param1=value1 HTTP/1.1
test.jsp
---------------------------------------
<jsp:forward page="resource.jsp">
<jsp:param name="param1" value="value2" />
<jsp:param name="param2" value="value2" />
</jsp:forward>
---------------------------------------
resource.jsp
-------------------------------------------------
<%@ page contentType="text/plain" %>
<%
String[] param1Values = request.getParameterValues("param1");
String[] param2Values = request.getParameterValues("param2");
for (int i = 0; i < param1Values.length; i++) {
out.println("PARAM1 VALUE: " + param1Values[i]);
}
for (int i = 0; i < param2Values.length; i++) {
out.println("PARAM2 VALUE: " + param2Values[i]);
}
%>
--------------------------------------------------------------------
When checking the values of the request parameters in resource.jsp,
param1 has value2,value2,value1 as values instead of value2,value1.
param2 has value2,value2 as values instead of just value2.
This worked properly in previous builds.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>