• 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

dynamic row generation in struts ?

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need help in row generation in jsp using struts 1. suppose i have a row having controls

list text box text box
Add new wen i click Add new one more row will generate like this

list text box text box
list text box text box

and list should have values . Also tell me that can i get all these values throgh form object?

Thanks in Advance
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use JavaScript to make multiple new rows which consist of text box and while creating use the same name of form bean property for each new row "input" tags, but the trick is that, the form bean property MUST be an array.
 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply, my Q is how can i get lsit in new row agian as it is in request scope , using struts?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Asheesh Nehra wrote: my Q is how can i get lsit in new row agian as it is in request scope , using struts?


UseRealWords

If you want the new rows should be populated with those list values, then still you can use JS. What exactly you need to do is "clone" the previous row and "write" in into a HTML page, How to do that, Google it OR ask in HTML-JavaScript forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic