hi all, I want to pass all the values in a <select size=3 name=""> into a jsp processing page (.jsp) thru a html form. How should actually i do that? Can i get all the values (a list in an array), or only one value? Please do give me some advice or solution asap. Thanks yukeshean
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
posted
0
code your select object to allow for multiple selections: <select name="mySelect" size="3" multiple="true"> ... </select> At the server side, have a look at the method getParameterValues() of javax.servlet.ServletRequest which returns a String[] for parameters that might have more than one value. James.
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
posted
0
I partially misread your post. Here is some code to select all the values from your select object. The server side comment still stands true though.