Re: previous action

2010-04-15 Thread Greg Lindholm
I've added this method to my ActionBase class to get the action name. /** * Gets the action name. This is just the bare name without ".action" extension. * * This is equivalent to "#context['struts.actionMapping'].name" from in a JSP. * * @return the action name *

Re: previous action

2010-04-15 Thread Dale Newfield
lucas owen wrote: An easy one: how can I figure out the struts 2 previous action, the one I come from? You could be asking for either of two different things: The action related to the current request? The action related to the URL being displayed in the browser's address bar when the curre

Re: previous action

2010-04-15 Thread Robert Graf-Waczenski
lucas owen schrieb: thanks for the answer, but I'm completely sure you can obtain it from ActionContext or ActionInvocation or something similar... Not to my knowledge (i may be wrong, though). My understanding of the ActionContext and the ActionInvocation is that both are valid only per req

Re: previous action

2010-04-15 Thread Sébastien Domergue
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

Re: previous action

2010-04-15 Thread lucas owen
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 > You'll have to track it all by yourself with an action ID or something > related, as a parameter of your request u

Re: previous action

2010-04-15 Thread Kun Niu
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 a