This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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??