File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Saving Dynamic Form in Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Saving Dynamic Form in Struts 2" Watch "Saving Dynamic Form in Struts 2" New topic

Saving Dynamic Form in Struts 2

Sukumar Gaade

Joined: Apr 23, 2009
Posts: 21

I am working on a Struts 2 application. I have to save a dynamic questionnaire form (which has radio, combo, checkbox, text,...).

As the form is dynamic i cannot have the fields defined in the action class. I have used the below code in Struts 1.3 to capture all the request parameters in to map

LazyValidatorForm lazyForm = (LazyValidatorForm) form;
Map map = lazyForm.getMap();

What is the equivalent in Struts 2 ?

I agree. Here's the link:
subject: Saving Dynamic Form in Struts 2
Similar Threads
LazyValidatorForm and Lazy DynaBean
Dynamic form submission
Advantages of JSF over struts..
what is "dynamic" form bean ?