This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Add new text field on each press of a button and retrieve values
posted 13 years ago
Hi, Basically, I am trying to create new categories. In my JSP, I have a form which has a text field to take category name. I have a submit button which will read the category name and save it into the database. The problem: I want to create a 'Add' button by pressing which the page is displayed with a new text field created below the first(already present) retrieving the values also. This should happen until I press save button which will finally save all the categories I created so far. How do I keep track of the values for every press of the 'Add' button? Please help me. Thank you. -raj