aspose file tools*
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

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 "Dynamic form submission" Watch "Dynamic form submission" New topic

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.
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.

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?
I agree. Here's the link:
subject: Dynamic form submission
Similar Threads
Clarification for jstl <c:foreach> tag
wsad and struts (peculiar forms problem)
Problem assigning long values
Cannot find symbol...
Why and When to use reflections