java 警告:Could not find action or result报错为:2010-10-10 23:14:14 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn警告:Could not find action or resultNo result defined for action com.test.action.BookAction and result successat com.o

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/04 04:34:03
java 警告:Could not find action or result报错为:2010-10-10 23:14:14 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn警告:Could not find action or resultNo result defined for action com.test.action.BookAction and result successat com.o
xW]kA+KPw6iZBEEQfgfm;$m}*b El@/Z}bib_paf{B49 j@j}|xVI5@RH!> %B%Y5f{m}GҍfGdN&\T&ᢼ0OhE䀔J~XgQE*WSihHw !,IuQe|TȪbO*-TA,}I)|{@F IUodPe[_ +p~ݲ!uG9e5+;U]3ٹ5_@(Iw/He)BK2,cqZOj,T(D<,>aglz)))%}:](bmtDҌs֎źP9p^$>bpJmV\rK ( 煮2ipgK'#/s% _(Ȕ9e_rd*reA1m^UUa~)l"k;n \m- lT:4R-s<1DfM3+F

java 警告:Could not find action or result报错为:2010-10-10 23:14:14 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn警告:Could not find action or resultNo result defined for action com.test.action.BookAction and result successat com.o
java 警告:Could not find action or result
报错为:
2010-10-10 23:14:14 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告:Could not find action or result
No result defined for action com.test.action.BookAction and result success
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:364)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:165)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:252)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237

java 警告:Could not find action or result报错为:2010-10-10 23:14:14 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn警告:Could not find action or resultNo result defined for action com.test.action.BookAction and result successat com.o
com.test.action.BookAction的result你配的是name="book",而你在action里面返回的肯定是success,改成return "book";就好了,或者把这的name="book"改成name="success";