Reputation: 149
Let's say.. I have two textbox:
<td>
<input type="text" name="ArmNumber" size="2"/>
<input type="text" name="ArmNumber" size="2"/>
</td>
And I write "Hello" on the first textbox. And I write "World" on the second textbox.
Will it display 2 word ? or only the first input field which is the "Hello" word.
Upvotes: 1
Views: 28
Reputation: 2575
String values[] = request.getParameterValues("num");
// will retrieve all field values entered by user using "getParameterValues()"
// and store in STRING ARRAY
out.println("<h3> The Values are </br>");
for(int i=0; i<values.length; i++)
{
out.println("<br>" +values[i]); // print all field values entered by user in form
}
Hope this will help you
Upvotes: 1