Hi,
I'm trying to access the ActionMapping from an interceptor, like the
following test stub:
public String intercept(ActionInvocation invocation) throws Exception {
ActionMapping am=ServletActionContext.getActionMapping();
log.info("The method is "+am.getMethod());
return invocation.invoke();
}
According to the javadocs am.getMethod() should return a String (the
method), but for some reason am.getMethod() always returns null. The
am.getName() and am.getNamespace() methods seem to work correctly however.
Is there a way (that works) to extract the name of the method that is going
to be executed?