Results 1 to 2 of 2

Thread: Multiple forms in one page / forms mit multiple actions

  1. #1
    Join Date
    Feb 2005
    Posts
    7

    Default 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. #2
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    71

    Default

    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

Similar Threads

  1. Pageable data list with Hibernate
    By robmorgan in forum Data
    Replies: 23
    Last Post: Jul 24th, 2006, 06:12 PM
  2. Replies: 2
    Last Post: Oct 6th, 2005, 12:31 PM
  3. Multiple actions
    By bytecount in forum Web Flow
    Replies: 1
    Last Post: Jul 27th, 2005, 10:34 AM
  4. Multiple forms approach?
    By MadOtis in forum Web
    Replies: 1
    Last Post: May 18th, 2005, 05:21 PM
  5. Multiple forms
    By glazed in forum Web
    Replies: 6
    Last Post: Dec 19th, 2004, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •