aspose file tools*
The moose likes Struts and the fly likes substitute for DynaActionForm in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "substitute for DynaActionForm in struts2" Watch "substitute for DynaActionForm in struts2" New topic
Author

substitute for DynaActionForm in struts2

Deeps Mistry
Ranch Hand

Joined: Jan 31, 2009
Posts: 189
Hi,

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


Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No, but you can use a map.
Deeps Mistry
Ranch Hand

Joined: Jan 31, 2009
Posts: 189
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: substitute for DynaActionForm in struts2
 
Similar Threads
Empty Form after submit
Prepopulating a DynaActionForm
LookUpDispatchAction
Difference b/w ValidatorForm and DynaValidatorForm
How to generate dynamic form elements