小弟刚学struts2
在struts.xml文件中配置
<action name="register" class="com.test.action.RegisterAction" method="test">
<interceptor-ref name="myStack">
</interceptor-ref>
<result name="success">/success.jsp</result>
<result name="input">/register2.jsp</result>
</action>如何用intercept获得method的方法
在public String intercept(ActionInvocation invocation) throws Exception{
}
用invocation.getInvocationContext().getName()可以获得action名为register
不知道用什么方法可以获得方法名为test