Two Laptop Bag*
The moose likes Java in General and the fly likes Passing Multiple Values to another jsp page from a List Box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Passing Multiple Values to another jsp page from a List Box" Watch "Passing Multiple Values to another jsp page from a List Box" New topic
Author

Passing Multiple Values to another jsp page from a List Box

hari krishnakumar
Greenhorn

Joined: Sep 22, 2003
Posts: 2
hi
i want to pass multiple values from a list box from one jsp page to another jsp page.
can anyone tell me how to get the values in the another page using request?
Jon Chan
Greenhorn

Joined: Sep 21, 2003
Posts: 7
For a quick and dirty method:
pass it as follows:
.....&list=abc|def|ghi&...........
And then use StringTokenizer to handle the value.
Nischal Tanna
Ranch Hand

Joined: Aug 19, 2003
Posts: 182
Hi ..
to pass multiple values of a single parameter we can use the getParametervalues() method of the request object
for example suppose the name of the list is "list1"
use the following syntax at the 2nd page..
String[] values=request.getParametervalues("list1");


Thnx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Multiple Values to another jsp page from a List Box
 
Similar Threads
hows can i retrieve the values from a multiple select list in a jsp??
Sending the list from server to the JSP
Multiselect list box
Passing values from JSP
How to display the text box by one in JSP Page