2021年2月3日星期三

how to receive values fromin servlet or JSP OR Java. dynamically multiple values [closed]

In HTML Page we have taken 3 input fields .So, in servlet we have receiving 3 parameters statically .But My question is, in UI when i press ADD button,i get more input fields And whatever input fields are added by clicking on ADD button ,All that input fields have to receive in servlet " request.getparameter("inputfieldname") " is also be add . how many input fileds are created in UI and in servlet also have to create that no.of receiving files(request.getparameter("inputfieldname")) also to be create.

See Picture you will understand my problem

In HTML page, Adding more input fields by clicking on "ADD" button . And how to receive Those input values in " servlet/JSP/JAVA "

Example :

//HTML_page  <input type="text" name="id"/>     //servlet/JSP/JAVA   request.getParameter("string")  
https://stackoverflow.com/questions/66032435/how-to-receive-values-from-form-in-servlet-or-jsp-or-java-dynamically-multipl February 04, 2021 at 01:16AM

没有评论:

发表评论