i think this information may be found if you are in a redirect result (and i'm not sure of that). Struts won't save the last action per session because anything will say that it is an action that renders a complete page or just a piece of page using ajax. Another exemple is that your action is not recall when you use your backspace key to go to the previous page. So, this information is not relevant.

When I need the previous action, I extends an action that write in session it's url and it's parameters and to retrieve it I call an action that read the session and expose a parameter that contains the complete URL (the paramaters are passed in GET method) and taht is read in struts.xml.
This trick can be used with a stack that pop elements.

Regards

Sébastien

Le 15/04/2010 11:25, lucas owen a écrit :
thanks for the answer, but I'm completely sure you can obtain it from
ActionContext or ActionInvocation or something similar...

the problem is I don´t know how.

2010/4/15 Kun Niu<haoniu...@gmail.com>

You'll have to track it all by yourself with an action ID or something
related, as a parameter of your request url.


lucas owen wrote:

Hi Struts users:

An easy one: how can I figure out the struts 2 previous action, the one I
come from?

I have tried everything but nothing works...

Thanks in advance!!!



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



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

Reply via email to