• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hows can i retrieve the values from a multiple select list in a jsp?
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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")
 
Gabriel Haggiag
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to use
<jsp:setProperty name="myBean" property="*"/> mechanism for setting multipull values with the same name?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic