jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes Add new text field on each press of a button and retrieve values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Add new text field on each press of a button and retrieve values " Watch "Add new text field on each press of a button and retrieve values " New topic
Author

Add new text field on each press of a button and retrieve values

raj agastya
Greenhorn

Joined: Nov 27, 2001
Posts: 22
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
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Sounds like what you are trying to do is all client-side processing, so you'd have more luck using Javascript rather than specific Java stuff.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Add new text field on each press of a button and retrieve values