Ill try to elaborate
Following is the chunk of form which will get repeated if there is more than one set of rows.
My javascript is giving the same name to the fields.
example if a i have 3 rows the field "quantity" should have three values and so on.
<td><INPUT TYPE = "hidden" name="returnItemId"/></td>
<td><input type="checkbox" name="item" /></td>
<td><INPUT TYPE="text" NAME="quantity" VALUE="" SIZE="4" MAXLENGTH="4"/></td>
<td><INPUT TYPE="text" NAME="partNumber" VALUE="" SIZE="18" MAXLENGTH="18"/></td>
<td><TEXTAREA NAME="partDescription" ROWS=3 COLS=40></TEXTAREA></td>
<td><TEXTAREA NAME="reasonForReturn" ROWS=3 COLS=40></TEXTAREA></td>
In my servlet i am trying to get the parameters like
String quantity[] = request.getParameterValues("quantity");
when i try to get all the values for "quantity" in a for loop like
for (int i = 0; i < quantity.length; i++) {
//do something
}
I just get one set of values.
I am lost right now. I am trying to add an id field to my table and see if i can handle it.
Thanks