struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject RE: Access to ActionContext.getContext().getName() using OGNL
Date Sun, 29 May 2011 02:39:08 GMT
> -----Original Message-----
> From: JOSE L MARTINEZ-AVIAL [mailto:jlmagc@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message