首页上一页 1 下一页尾页 3 条记录 1/1页
Java web开发实战 第25章 明日论坛 有报错
发表在JavaWeb图书答疑
2016-04-29
是否精华
是
否
版块置顶:
是
否
导入项目后,Struts.xml文件中,以下三行均提示有错,提示为“Undefined actionName parameter”
<result name="toForumPage" type="chain">articleAction_forum</result>
<result name="exitSys" type="chain">homeAction_index</result>
<result name="success" type="chain"></result>
主页能打开,但点左上角的登录或注册时均显示500错误,如下
HTTP Status 500 - Unable to instantiate Action, userAction, defined for 'userAction_toLoginPage' in namespace '/'userAction
exception
Unable to instantiate Action, userAction, defined for 'userAction_toLoginPage' in namespace '/'userAction
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:319)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:400)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
<result name="toForumPage" type="chain">articleAction_forum</result>
<result name="exitSys" type="chain">homeAction_index</result>
<result name="success" type="chain"></result>
主页能打开,但点左上角的登录或注册时均显示500错误,如下
HTTP Status 500 - Unable to instantiate Action, userAction, defined for 'userAction_toLoginPage' in namespace '/'userAction
exception
Unable to instantiate Action, userAction, defined for 'userAction_toLoginPage' in namespace '/'userAction
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:319)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:400)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:501)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)