No result defined for action xxx result xxx问题
?struts2-convention-plugin-2.1.8.1.jar中需要以下配置
struts2-convention-plugin-2.1.8.1.jar这个包,自动根据访问的url,根据约定找到你请求的jsp页面,或者fremakker页面.
?
在struts.xml中增加
<constant name="struts.convention.result.path" value="/" />
这个配置,就解决问题.
http://127.0.0.1:8080/dbc/test/begin!xx.d
BeginAction中的xx方法已经执行,只是跳转的时候找不到页面.
因为系统不知道指定页面的地址.
增加配置后,就能正常转向页面.
?
?
?
报错信息:
Struts has detected an unhandled exception:
Messages:No result defined for action com.hupun.dbc.action.test.BeginAction and result xxStacktracesNo result defined for action com.hupun.dbc.action.test.BeginAction and result xxcom.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:364) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)