instead of   mapping.findForward(mapping.getInput() )  use   mapping.findForward("page2 or page3" ) ;
-----Original Message-----
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:17 PM
To: [EMAIL PROTECTED]
Subject: Override Input Form / JSP when Errors Are Encountered

When validate() returns an error collection, the framework takes me back to the input page (page1).  How do I override this?  I have a multi-page input wizard as shown below.  I'd like to stay on the page that resulted in the error instead of going back to page 1.
 
    <action    path="/someWizard"
               type="com.x.WizardAction"
               name="wizardForm"
              scope="session"
              input="/page1.jsp">
        <forward   name="page2"              path="/page2.jsp"/>
        <forward   name="page3"        path="/page3.jsp"/>
    </action>

Reply via email to