Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
raj agastya
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic