This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

substitute for DynaActionForm in struts2  RSS feed

 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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


Thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, but you can use a map.
 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!