File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Action forms

 
Muralitharan Pannerselvam
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

In my application a jsp contains an input form which is mapped to a ActionForm and a action class.Now my requirement is to have similar 3 more input forms in the same page.But my action class will be same.How to handle this scenario?


How to handle array of Actionforms in the Action Class?
 
Nacho Espinosa
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try with DispatchAction.

Check the documentation about this.
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your html/jsp page can have multiple forms, but clicking the submit button will only submit one of the forms. An action only gets one form passed in to the execute method. Maybe if you described your situation in more detail somebody could provide you with a solution.

- Brent
 
Muralitharan Pannerselvam
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

For example consider this, previously my jsp page had three fields namely name,id and address which i have mapped to a action form with three properties. Now my requirement is that i want to have three more set of fields like that. How can i handle this in action form other than creating seperate properties for the remaining three sets. i also want to have all the four sets of values in my action class.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic