You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thomas Cornet <th...@cornet.name> on 2003/05/01 18:59:08 UTC

Re: MultiPageAction for managing paging logic in multi page forms

At 17:33 01/05/2003, you wrote:
>I've written an action that can be used to manage a multi page form. I'm 
>looking for some community input to smooth over a couple rough edges.  If 
>anyone is intersted in the java file, I'd be happy to share that.
>
>Basically, you map all the pages as inputs in your action mapping:
>page1,page2...pageN.  You have to also define a "success" forward which is 
>where to go when the form is complete and a "duplicate" forward (like what 
>would happen with a duplicate submission) which is what happens when 
>saveToken and isTokenValid don't work right.
>
>The parameter for the action tells the action how many pages there are.
>when page N is submitted where N is the total pages, the action returns 
>the success forward, else page(N+1). thus leading through the process.
>
>ie: >>>>>>>>>
>
>  <action path="/Register"
>                 name="registerForm"
>                 scope="session"
>                 unknown="false"
>                 validate="false"
>                 type="com.zserve.util.MultiPageAction"
>                 parameter="2">
>             <forward name="page1"
>                      path="/JoinForm.do"
>                      redirect="false"/>
>             <forward name="page2"
>                      path="/Demographic.do"
>                      redirect="false"/>
>             <forward name="success"
>                      path="/RegisterComplete.do"
>                      redirect="false"/>
>             <forward name="duplicate"
>                      path="/Duplicate.do"
>                      redirect="true"/>
>         </action>
>
><<<<<<<<<<<<<
>
>
>Let me know if anyone is working on something similar or if anyone would 
>like to try it out.

Seems like StrutsWizard project on SourceForge has the same goals....

http://sourceforge.net/projects/strutswizard/



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