首页 新闻 会员 周边 捐助

struts2 日志报错

0
悬赏园豆:15 [已关闭问题] 关闭于 2014-08-30 16:47

Action:

public String validateTokenPage () {
  Member member = (Member) getHttpSession().getAttribute("purseUser");
  getHttpRequest().setAttribute("error", this.getText("dinpay.pms.jsp.token"));
  return "success";
 }

Struts.xml:

<action name="validateTokenPage" class="com.dinpay.dpp.pms.web.action.member.RepeatFormAction" method="validateTokenPage">
   <result name="success">/WEB-INF/jsp/errorPage/error.jsp</result>
  </action>

ULR:web/validateTokenPage

 

可以正确导航到指定页面,但是后台日志报错:

2014-08-30 16:02:30,573 [WARN]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn 64]-Could not find action or result: /pmsweb/gray
There is no Action mapped for namespace [/] and action name [gray] associated with context path [/pmsweb]. - [unknown location]
 at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
 at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
 at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
 at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
 at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:552)
 at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
 at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)

 

这是啥问题呢~?请各位大神解惑~

 

骑牛看太阳的主页 骑牛看太阳 | 初学一级 | 园豆:9
提问于:2014-08-30 16:06
< >
分享
所有回答(1)
0

页面<body background="gray"> 里面的background属性去掉就阔以了,具体啥原因还是不清楚

骑牛看太阳 | 园豆:9 (初学一级) | 2014-08-30 16:47
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册