I am trying to pass values of textbox with same name from JSP to servlet but not able to accomplish this task.
I tried using this in servlet but i only get one text
If you have a form like that:
<form method="post">
<input type="text" name="words"><br>
<input type="text" name="words"><br>
<input type="submit">
</form>
Sends if you put one and two in the textboxs
words=one&words=two
For getting,
String[] words = request.getParameterValues("words");
You do not name the dynamically created input elements (to "words" or "meaning")
var element2 = document.createElement("input");
element2.name = "words";
element2.type = "text";
cell2.appendChild(element2);