Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Struts what method is being called?

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

like image 406
Sionide21 Avatar asked Feb 28 '23 14:02

Sionide21


1 Answers

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

invocation.getProxy().getMethod();

Where invocation is the ActionInvocation passed to your interceptor.

like image 156
Sionide21 Avatar answered Mar 05 '23 17:03

Sionide21