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 */ public String getActionName() { return ActionContext.getContext().getName(); }
On Thu, Apr 15, 2010 at 5:44 AM, Robert Graf-Waczenski <r...@lsoft.com> wrote: > 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 > request. Anything you need beyond this is a session attribute that you have > to maintain yourself, as per Kun Niu's suggestion. > > Robert > > > --------------------------------------------------------------------- > 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