> -----Original Message----- > From: JOSE L MARTINEZ-AVIAL [mailto:jlm...@gmail.com] > Sent: Saturday, May 28, 2011 16:53 > To: Struts Users Mailing List > Subject: Access to ActionContext.getContext().getName() using OGNL > > Hi, > I've been looking for a while, but haven't found anything, > so I'm asking here. How can I get the name of the action from > a Struts2 Tag? IOW, I would like to do something like > ActionContext.getContext().getName(), but using <s:property
Why (so I can help better)? > value="name"/>. While this is not an answer to your question, this may help your (assumed) end goal. In the latest revision or release <= 2.1.6 The <s:url /> will create a link to the current action. > I haven't found any information on how to do that. > If all else fails, kake a getter in your action. > Thanks > > Jose > -Jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org