I am having trouble capturing a value from a select drop down list in a page where the user has multiple choices and the page sends back the city, state, zip, and a list of plans. The problem is that the city, state and zip are captured, but if the user selects any row other than the first, the drop down list values does not get captured. Here is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
When something like this happens, the first thing to check out is to make sure that the HTML that you are sending to the page is properly formatted. When the form displays, perform a View Source to make sure that the select element and its options are correctly formatted.
If they are, then we'll probably need to see the code that you are submitting the form to.
You seem to have two drop-downs with the same name in the same form. Is that intentional? If it is, you'll get two parameters with the same name when the form is submitted, and will need to use request.getParameterValues() to get both values.