I have a form that contains various productID values. They are contained in an input text, with different values all having the same name.
<%
ListIterator ul2 = myCartList3.listIterator();
while(ul2.hasNext()){
ShoppingCart myCart2 = new ShoppingCart();
myCart2 = (ShoppingCart)ul2.next();
%>
<input type="text" value="<%=myCart2.getProductID() %>" name="productID" size="3" />
<%
}
%>
When the form is submitted, it goes to the servlet. Usually I'd use request.getParameter
but it only displays one attribute. How do I retrieve multiple attributes with the same name?