aspose file tools*
The moose likes Servlets and the fly likes retrieving list (multiple select on the form) values into servlet!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "retrieving list (multiple select on the form) values into servlet!!!" Watch "retrieving list (multiple select on the form) values into servlet!!!" New topic
Author

retrieving list (multiple select on the form) values into servlet!!!

karls Bernando
Greenhorn

Joined: Mar 28, 2002
Posts: 1
Hi, I'm trying to retrieve the values selected in a list item (selecting multiple items). How do I retrieve all selected values for that listbox into the servlet? If I try : reqeust.getParameter("listbox"), it returns the first selected value only. How do I get all the selected values?
Help is appreciated.
karls
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
String[] myValues = request.getParameterValues("myList");
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
karls,
Javaranch has a naming policy which is strictly enforced. Please read this policy and change your display name to one that conforms if you would like to keep posting here. Thanks.


Matthew Phillips
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retrieving list (multiple select on the form) values into servlet!!!