Question

How can I get the name of the method that will be called in the action from within an interceptor?

Was it helpful?

Solution

Ok, thanks to the struts source I found the answer.

invocation.getProxy().getMethod();

Where invocation is the ActionInvocation passed to your interceptor.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top