This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Dynamic form submission Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic form submission" Watch "Dynamic form submission" New topic
Author

Dynamic form submission

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
I have a form that is created dynamically. When I submit this form how can I have all the parameters collected? I cannot have a struts form since they will complain about the getter and setter methods for the parameters for the form field. And I cannot have getter and setter methods since I don�t know about the parameters until the form is generated. Any ideas appreciated.
Thanks.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Try using LazyValidatorForm as your ActionForm. It doesn't require pre-defining the field names or types.


Merrill
Consultant, Sima Solutions
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
I really appreciate the answer. But I have to have Struts 1.2.6 in order to use LazyValidatorForm. Unfortunately I am using struts 1.1.
Any other suggestions?
Thanks.
 
GeeCON Prague 2014
 
subject: Dynamic form submission