struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ManiKanta G <manikanta.g...@sifycorp.com>
Subject Re: retrieve action name
Date Fri, 05 Sep 2008 07:55:38 GMT
If from action class or some other class, can use the below one.

       ActionContext.getContext().getName()

Regards,
ManiKanta

ManiKanta G wrote:
> In what you want to get the action name?
>
> If from an interceptor,
>
>    public String intercept(ActionInvocation actionInvocation) throws
>    Exception {
>            /* Requested action name */
>            String requestedAction =
>    actionInvocation.getInvocationContext().getName();
>           // other code
>    }
>
> Regards,
> ManiKanta
>
>
> attiaoui wrote:
>> how can i retrieve the action name from request
>>   


********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Limited and is intended for use only by the individual or entity to 
which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is a 
forwarded message, the content of this E-MAIL may not have been sent with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you have 
received this communication in error, please delete this mail & notify us 
immediately at admin@sifycorp.com

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


Mime
View raw message