Results 1 to 3 of 3

Thread: Multiple forms in a single page - how (spring mvc)

  1. #1
    Join Date
    Aug 2004
    Location
    St. Louis, MO
    Posts
    39

    Default Multiple forms in a single page - how (spring mvc)

    Has anyone had success getting multiple forms (each with their own controllers, etc) in the same page? What do you set each form's action to? Any help would be appreciated.

    R

  2. #2
    Join Date
    Aug 2004
    Location
    St. Louis, MO
    Posts
    39

    Default

    See below

  3. #3
    Join Date
    Aug 2004
    Location
    St. Louis, MO
    Posts
    39

    Default Perhaps I was wrong

    I guess I didn't have it fixed after all. Here's what I'm trying to do. I want to have one page (overview) that handles a couple of different actions. I want to have 2 different forms in this page (hidden and displayed via javascript) which post to their own form controllers. One of these is the front end for a wizard.

    The flow of this goes as follows:

    call wasteOverview.htm (htm is my dispatch servlet mapping). This is just a controller to load a couple of lists, etc. It retuns the overview view.

    Overview view will have 2 forms in it. One posts to addWasteWizard.htm which is what I have a WizardController mapped to. When I post that form, spring is trying to redirect me to the first page in the series (which I have set to wasteOverview.htm) instead of treating it as if the first page of the wizard series had been posted. I imagine the second form will attempt to display the form view at this point, as well. How do I configure the forms so that this paradigm will work?

Similar Threads

  1. Pageable data list with Hibernate
    By robmorgan in forum Data
    Replies: 23
    Last Post: Jul 24th, 2006, 06:12 PM
  2. Multiple forms approach?
    By MadOtis in forum Web
    Replies: 1
    Last Post: May 18th, 2005, 05:21 PM
  3. Replies: 1
    Last Post: Feb 25th, 2005, 07:12 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 11
    Last Post: Jan 20th, 2005, 10:42 AM

Posting Permissions

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