You can configure a dynamic result like this:

      <result type="redirectAction">
        <param name="actionName">${nextAction}</param>
      </result>

In your action class you would then need a method  "String
getNextAction()" that returns the next action name.


On Thu, Jun 17, 2010 at 1:19 AM, Amol Ghotankar <ghotankaru...@gmail.com> wrote:
> Hello.
>
> I am using struts 2.0.x and facing one issue mentioned below.
>
> I have actions x, y, z from these three actions I can call action A.
>
> Now what i want is whichever action calls A success of A must redirect to
> called action.
>
> x---> A ---> x
>
> y---> A ---> y
>
> z---> A ---> z
>
> But I also do not want to use static binding here and it must be
> automatically done for some action means if tomorrow I decide
>
> n---> A ---> n, it must work without any changes.
>
> Can I write such result type or something from where I can get the called
> action from value stack etc......
>
> Please help me on the same.
>
> Regards,
>
>
> Amol Ghotankar
> cursivetech.com
>

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

Reply via email to