• 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

adding dyanmic textboxes and submitting it to ActionForm

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am working on struts and i am finding it difficult to implement a scenario in struts.

The scenario is ,

I need to create a list of text boxes based on the number of records from the database and when i submit the form all the values entered in the text boxed should be set in the actionform and i need to access those details in the action class.

The problem is that i dont know how many records will be available to create the number of text boxes.

So how to handle this scenario efficiently.

Thanks,
Suresh B
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
your ActionForm will contain collection of POJO,Each POJO contatin property suppose name(got from database).
while displaying in jsp use "iterate tag" to display text boxes

for more help see this link.
you will get info about iterate tag here.
 
reply
    Bookmark Topic Watch Topic
  • New Topic