• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Jsp:param

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This code is in page a.jsp

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

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.
Help!!!
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,



Make the above changes to your code it will work.

It is not possible to send array along with request parameter.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
For such situations you can do the following......

 
reply
    Bookmark Topic Watch Topic
  • New Topic