You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/08 01:34:22 UTC

DO NOT REPLY [Bug 18788] New: - Multiple input hook for multipage forms in processValidate()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18788>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18788

Multiple input hook for multipage forms in processValidate()

           Summary: Multiple input hook for multipage forms in
                    processValidate()
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: dan@mojavelinux.com


I have included here an extension (hack, patch, call it what you will) for the
RequestProcessor processValidate() method to look for a forward named
("input" + getPage()) in the case of a validation error on a multipage form.

        <action
            path="/register"
            name="registrationForm"
            type="org.example.webapp.RegistrationAction"
            validate="true"
            scope="session"
            input="/WEB-INF/jsp/register1.jsp">
            <forward name="input1" path="/WEB-INF/jsp/register1.jsp"/>
            <forward name="input2" path="/WEB-INF/jsp/register2.jsp"/>
            <forward name="input3" path="/WEB-INF/jsp/register3.jsp"/>
            <forward name="success" path="/WEB-INF/jsp/showProfile.jsp"/>
            <forward name="cancel" path="/WEB-INF/jsp/register1.jsp"/>
        </action>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org