Element type "return" must be declared异常_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > Element type "return" must be declared异常

Element type "return" must be declared异常

 2012/4/25 17:12:29  tangzlboy  程序员俱乐部  我要评论(0)
  • 摘要:Causedby:Elementtype"return"mustbedeclared.-file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ROOT/WEB-INF/classes/struts.xml:2625:27atcom.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)atcom.opensymphony
  • 标签:异常
Caused by: Element type "return" must be declared. - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ROOT/WEB-INF/classes/struts.xml:2625:27
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:885)
... 34 more
Caused by: org.xml.sax.SAXParseException: Element type "return" must be declared.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)

解决方法:是不小心将resulte写成了return.
<action name="requireAdd" class="huawei.webquestion.struts.RequireManageAction" method="requireAdd">
<return name="success">/page/require/newMyCreateRequire.jsp</return>
</action>
发表评论
用户名: 匿名