You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jerry Yu <je...@vortexcreations.com> on 2002/12/20 10:35:28 UTC

Workflow Extension Goes Back a Page Problem

Hi, I am trying to use Matthias' workflow extension in my webApp. One 
problem I have is anyone did anything that can let the user goes back a 
page?  I tried to put a GoBack button on my apps and set the state of 
it. But seems, it won't let me pass it.  Does anyone have any idea how 
to do this?  Thanks in advance

Best Regards,
Jerry


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Workflow Extension Goes Back a Page Problem

Posted by Matthias Bauer <Ma...@livinglogic.de>.
Hi Jerry,

consider the slightly modified configuration taken from the test 
application shipped with the workflow extension, I attached below: It 
defines a sequence of actions like that:

-- beginWf1Transition -->  State=1 -- wf1St2Transition--> State=2 
--wf1St3Transition--> State=3 --endWf1Transition-->

the action wf1St3BackToSt2 allows to go back from State 3 to State 2.

>   <action path="/beginWf1Transition"
>           type="com.livinglogic.struts.workflow.test.Wf1Action">
>     <set-property property="authtype" 
> value="com.livinglogic.struts.workflow.test.Authentication" />
>     <set-property property="primaryWorkflow" value="wf1" />
>     <set-property property="newState" value="1" />
>     <set-property property="nextState" value="2" />
>     <forward name="success" path="/inHome.jspp" />
>   </action>
>
>   <action path="/wf1St2Transition"
>           type="com.livinglogic.struts.workflow.test.Wf1Action">
>     <set-property property="authtype" 
> value="com.livinglogic.struts.workflow.test.Authentication" />
>     <set-property property="primaryWorkflow" value="wf1" />
>     <set-property property="prevState" value="1" />
>     <set-property property="newState" value="2" />
>     <set-property property="nextState" value="3" />
>     <forward name="success" path="/inHome.jspp" />
>   </action>
>
>   <action path="/wf1St3Transition"
>           type="com.livinglogic.struts.workflow.test.Wf1Action">
>     <set-property property="authtype" 
> value="com.livinglogic.struts.workflow.test.Authentication" />
>     <set-property property="primaryWorkflow" value="wf1" />
>     <set-property property="prevState" value="2" />
>     <set-property property="newState" value="3" />
>     <set-property property="nextState" value="0" />
>     <set-property property="nextState" value="2" />
>     <forward name="success" path="/inHome.jspp" />
>   </action>
>
>   <action path="/endWf1Transition"
>           type="com.livinglogic.struts.workflow.test.Wf1Action">
>     <set-property property="authtype" 
> value="com.livinglogic.struts.workflow.test.Authentication" />
>     <set-property property="primaryWorkflow" value="wf1" />
>     <set-property property="prevState" value="3" />
>     <set-property property="newState" value="0" />
>     <set-property property="endWorkflow" value="true" />
>     <forward name="success" path="/inHome.jspp" />
>   </action>

>   <action path="/wf1St3BackToSt2"
>           type="com.livinglogic.struts.workflow.test.Wf1Action">
>     <set-property property="authtype" 
> value="com.livinglogic.struts.workflow.test.Authentication" />
>     <set-property property="primaryWorkflow" value="wf1" />
>     <set-property property="prevState" value="3" />
>     <set-property property="newState" value="2" />
>     <set-property property="nextState" value="3" />
>     <forward name="success" path="/inHome.jspp" />
>   </action>
>


Hope that helps,

--- Matthias


Jerry Yu wrote:

> Hi, I am trying to use Matthias' workflow extension in my webApp. One 
> problem I have is anyone did anything that can let the user goes back 
> a page?  I tried to put a GoBack button on my apps and set the state 
> of it. But seems, it won't let me pass it.  Does anyone have any idea 
> how to do this?  Thanks in advance
>
> Best Regards,
> Jerry
>
>
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>