• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic