Re: Action redirect back to called actions

2010-06-17 Thread Greg Lindholm
Well you are need to track and supply which action name you want the redirect to go to. Here is a handy tip; to get the current action name from your action class you can add a method like this: public String getActionName() { ActionContext context = ActionContext.getContext();

Re: Action redirect back to called actions

2010-06-17 Thread Amol Ghotankar
Dear Greg, I understood this of how to redirect to next action. But I want to get the previous action from the context which called this action. For eg. LoginAction calls LoadHomeAction, so can I get the details of which action called LoadHomeAction in it. Inshort *can the called Action get th

Re: Action redirect back to called actions

2010-06-17 Thread Amol Ghotankar
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 wr

Re: Action redirect back to called actions

2010-06-17 Thread Greg Lindholm
You can configure a dynamic result like this: ${nextAction} 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 wrote: > Hello. > > I am using struts 2.0.x and facin

Action redirect back to called actions

2010-06-16 Thread Amol Ghotankar
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 wa