File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes substitute for DynaActionForm in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: substitute for DynaActionForm in struts2
 
Similar Threads
How to generate dynamic form elements
LookUpDispatchAction
Empty Form after submit
Prepopulating a DynaActionForm
Difference b/w ValidatorForm and DynaValidatorForm