Announcement Announcement Module
Collapse
No announcement yet.
Multiple forms in one page / forms mit multiple actions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple forms in one page / forms mit multiple actions

    Hello,

    a rather general question - is there an easy way to handle more forms in one JSP page or forms with multiple actions possible (e.g. when I hava a list of items, which I can delete or update respectively). The problem that I have is that a form can have only one backing object and I don't know how to use this feature, when I want to have a form with multiple actions. Has anyone maybe a good example of such a thing?

  • #2
    take a look at this post

    http://forum.springframework.org/viewtopic.php?t=1588

    on this problem and includes some code (skip to the end) for a SimpleMultiActionFormController which deals with multiple actions (there is some examples).

    More than one form in a controller is a little different, you need to use a command object which is a composite of the backing objects you wish to use and then handle different submit methods with the SimpleMultiActionFormController to validate and process then object you wish to consider (for a given submission)

    hope this helps

    Comment

    Working...
    X