Don't attach things, I won't open them.
Most likely you didn't place the select inside an html form which would cause the value to not be passed in the request.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
PLEASE DO IT SOOON
Wrong way to ask a question. We're not here to do your bidding at your whim. Maybe you should have started researching sooner if you're in a hurry now.
the multiselect is not possible with a dropdown, only with a selectbox.
You can get the values with getParameterValues(String) on the ServletRequest.
The API docs will give you more information.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
except that it should be a String array of course ;)
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Nice attempt, but post is 2 years old...
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
try this one:
1) capture the value of the dropdown select box with javascript using the getElementById command.
2) then next step to do is simply pass the value captured to the servlet. thats all! its gonna work! I guarantee you!
First of all this thread is 5 years old.
Second what you said is not necessary for the solution. The html code is correct and all is needed is to submit the form. You don't need javascript in order to put the value to another field and send that.
If you have read the entire you would know what was the problem.
And it is time to close this thread, before another tries to post their own crazy idea.
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902