Results 1 to 2 of 2

Thread: Wizard form controller quiestion

Hybrid View

  1. #1

    Default Wizard form controller quiestion

    with my wizard form i have two pages ..

    from the first page i need to go to the second page by clicking a link and also passing an extra parameter ..

    depending on this extra parameter my command object will be modified and displayed in the second page ..

    how can i go to the second page by clicking a link from first page

    any help will be greatly appreciated

    thanx

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney
    Posts
    503

    Default

    Spring encourages using a button to move between wizard pages.

    To move to page 2 from page 1, you could put a button like this on page 1.

    <input type="submit" name="Next Page" value="_target1"/>

    This uses 0-based indexes, so page 1 is _target0, page 2 is target1 and so on.

    If you also set the currentPage property in AbstractWizardFormController you can build a generic next button JSP page that you can include which will automatically know how to get to the next page. e.g. This causes a currentPage request attribute to be published and available to you in the JSP page.

    <property name="pageAttribute"><value>currentPage</value></property>

Similar Threads

  1. Replies: 1
    Last Post: Sep 22nd, 2005, 04:08 PM
  2. Replies: 0
    Last Post: Jun 10th, 2005, 08:22 AM
  3. Wizard form controller quiestion
    By mia in forum Web
    Replies: 2
    Last Post: May 26th, 2005, 11:00 PM
  4. Replies: 2
    Last Post: Apr 27th, 2005, 12:30 AM
  5. Commons validation with wizard form controller
    By brianstclair in forum Web
    Replies: 0
    Last Post: Jan 14th, 2005, 02:14 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
  •