Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsp:include and getParameterValues

843833Aug 18 2001 — edited Aug 23 2001
I am trying to pass parameters from one.jsp to two.jsp using form and jsp:include. /( Weblogic 5.1)/
In two.jsp I am using request.getParameterValues() and String array to store all parameters was sent from one.jsp.
In case, when one.jsp has a form with multiple input entries with the same name, array in two.jsp will be filled in all passing parameters.
In case, when I am using

//one.jsp
<jsp:include page="IncludedForm.jsp" flush="true">
<jsp:param name="column" value="accountid"/>
<jsp:param name="column" value="type"/>
<jsp:param name="column" value="status"/>
<jsp:param name="column" value="balance"/>
</jsp:include>

//two.jsp
<PRE>
<%
String [] columns = request.getParameterValues("column");
for (int i=0; i < columns.length; i++)
{
out.println(columns);
}
%>
</PRE>

array in two.jsp filled in by only one value 'balance'.
Why doesn't it store all values with the name="column" ?
Any ideas?

Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2001
Added on Aug 18 2001
9 comments
395 views