• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

substitute for DynaActionForm in struts2

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

We have DynaActionForm in struts 1.1, is there a similar thing in struts 2?


Thanks.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, but you can use a map.
 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:No, but you can use a map.



Hey..
what i want to do is this:
1) I have 4 columns(textfields) in a row. I want to create 10 such rows.
In struts1.1 i had used dynamic actionform to create 10 rows.

But in struts2 there is no DynaActionForm, so i created a list with 10 form beans and iterated it in my jsp.
But how do i access the data of all the rows. Right now i am able to fetch only the first row since i am not able to generate dynamic id for every row generated.

actionclass:


jsp:


generated client side code:


I want to create id="pod1", "pod2" and so on....


Where am i going wrong?

Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic