Multiple-valued Parameters
If a form parameter can have more than one value (e.g. a value from a menu allowing multiple selections), you should apply the method:
public String [] getParamterValues(String name) {. . .}
to the HttpServletRequest object.
Recall this example from the section on forms:
<select name=pets size=3 multiple>
<option value=dog> Dog
<option value=cat> Cat
<option value=bird> Bird
<option value=fish> Fish
</select>
The form may send the data in a GET request to the following servlet.