开发者

Struts what method is being called?

开发者 https://www.devze.com 2022-12-20 00:00 出处:网络
How can I get the name of the method that will be called 开发者_JS百科in the action from within an interceptor?Ok, thanks to the struts source I found the answer.

How can I get the name of the method that will be called 开发者_JS百科in the action from within an interceptor?


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

invocation.getProxy().getMethod();

Where invocation is the ActionInvocation passed to your interceptor.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号