This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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??
 
Similar Threads
Multiple selection in drop down list
code to retrieve result from databse which are selected in the list box
how to show multiple saved values as selected in h:selectManyListBox
how can we create password protection in jsp??
combo boxes in jsp