Retrieving multiple textbox values with same name from JSP in Servlet

后端 未结 2 1330
悲哀的现实
悲哀的现实 2020-12-21 02:40

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

2条回答
  •  死守一世寂寞
    2020-12-21 03:30

    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);
    

提交回复
热议问题