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
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
2 matches
Mail list logo