File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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