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 2004/01/25 00:01:47 UTC

DO NOT REPLY [Bug 26406] New: - amend example for wizard form (one big form) with forward and stay/backward steps

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=26406>.
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=26406

amend example for wizard form (one big form) with forward and stay/backward steps

           Summary: amend example for wizard form (one big form) with
                    forward and stay/backward steps
           Product: Struts
           Version: 1.1 Final
          Platform: Other
               URL: http://jakarta.apache.org/struts/userGuide/building_cont
                    roller.html#action_mapping_wildcards
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Documentation
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


As per the documentation at the above URL, it should be possible to for a
wildcard stepping through one big form with the wildcard action mapping to not
only go back to "mainMenu" upon failure or forward upon success, but also to
stay on the current wizard step until correct?

The idea is to have a double pattern match in the action path for the current
and the next wizard step.

  <action path="/regWizard*To*"
  	type="com.mydomain.myApp.control.action.RegWizard{1}To{2}Action"
  	name="regForm"
  	scope="request"
  	validate="false" >
  	<forward fwdName="success" path="/reg{2}.jsp" />
	<forward fwdName="failure" path="/reg{1}.jsp" />
  	<forward  fwdName="start" path="/reg1.jsp" />
  	<forward  fwdName="done" path="/confirm.jsp" />
  </action>

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