jsp:include and getParameterValues
843833Aug 18 2001 — edited Aug 23 2001I 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