Announcement Announcement Module
Collapse
No announcement yet.
Wizard form controller quiestion Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment

    Working...
    X