wood burning stoves*
The moose likes JSP and the fly likes Jsp:param Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp:param" Watch "Jsp:param" New topic


Sarah Gaikwad
Ranch Hand

Joined: Feb 26, 2004
Posts: 35
This code is in page a.jsp

String collistnames[]= {"Verified","Not Verified","All"};
<jsp:include page="b.jsp">
<jsp aram name="collistnames" value="<%=collistnames%>"/>

This is in b.jsp
String lists =request.getParameterValues("collistnames");

I am not able to get the result that i need i do not get the array conatining the values.
Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79

Make the above changes to your code it will work.

It is not possible to send array along with request parameter.
siva krishnan

Joined: Apr 26, 2003
Posts: 21
Hi Kalai,

But if we aren't sure about the size of the array, i.e. array values/size is got only at run-time...how do we handle it ?

Cheers<br />Siva<br />SCJP 1.4<br />SCWCD 1.3
Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
For such situations you can do the following......

I agree. Here's the link: http://aspose.com/file-tools
subject: Jsp:param
Similar Threads
How can i pass method from one jsp to another included file
include action vs. include directive
How to include a HTML Page into another HTML page
How can i pass a method from one jsp to another jsp using
Auto-updating JSP page