This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic form submission

 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using LazyValidatorForm as your ActionForm. It doesn't require pre-defining the field names or types.
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic