Java Servlet - getting information from multiple textboxes
Posted on 2009-05-05
I am wondering if there is a way to pull data from multiple text fields on a html page without having to hardcode the textfield names into my code using getParamater(textboxnamehere).
For example my page has 4 text fields, I want to be able to get the informtaion in those text fields and run it through the same SQL statement individually, using a loop.
Basically while there is a textbox that has not been read get textbox information, run SQL statement then process the next textbox
instead of using code like
String textOne = request.getParameter("textfield");
String textTwo = request.getParameter("textfield2");