File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes hows can i retrieve the values from a multiple select list in a jsp?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "hows can i retrieve the values from a multiple select list in a jsp??" Watch "hows can i retrieve the values from a multiple select list in a jsp??" New topic
Author

hows can i retrieve the values from a multiple select list in a jsp??

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
hows can i retrieve the values from a multiple select list in a jsp?
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
All the values in the select list while still on the client side (that isn't going to happen with JSP)? The selected value after the form was submitted? Which?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Assuming you are talking about a multi-select list, use getParameterValues() of the request object. It will be returned in an array, so....
String myList[] = requestReference.getParameterValues("Name")


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Gabriel Haggiag
Greenhorn

Joined: Jul 07, 2003
Posts: 9
Is there a way to use
<jsp:setProperty name="myBean" property="*"/> mechanism for setting multipull values with the same name?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hows can i retrieve the values from a multiple select list in a jsp??