[code="xml"]
The rule means that requests to /test/status/ will be redirected to /rewrite-status
the url will be rewritten.
/index/(.*)
/index.do?act=$1
[/code]
访问http://localhost:8080/project/index/login抛异常
ERROR [org.apache.struts.actions.DispatchAction] - Action[/index] does not contain method named 'undefined'
java.lang.NoSuchMethodException: com.soft.index.action.IndexAction.undefined(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
at java.lang.Class.getMethod(Class.java:1581)
......
ARN [org.apache.struts.action.RequestProcessor] - Unhandled Exception thrown: class java.lang.NoSuchMethodException
[19:22:37.961] javax.servlet.ServletException: java.lang.NoSuchMethodException: Action[/index] does not contain specified method (check logs)