Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic row generation in struts ?

 
Asheesh Nehra
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic