struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amol Ghotankar <ghotankaru...@gmail.com>
Subject Re: Action redirect back to called actions
Date Thu, 17 Jun 2010 13:47:51 GMT
Dear Greg.

Thanks for the information.

Is this an inbuilt variable or we need to define it somewhere in the calling
action.

Can we also the namespace of the calling action in the called action
directly.

Regards,

Amol Ghotankar

cursivetech.com

On Thu, Jun 17, 2010 at 6:31 PM, Greg Lindholm <greg.lindholm@gmail.com>wrote:

> 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 <ghotankarua50@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message