• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

substitute for DynaActionForm in struts2

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic