struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
来源:互联网 发布:加内特和邓肯数据对比 编辑:程序博客网 时间:2024/05/16 00:35
struts-config.xml中的元素有严格的顺序,如果元素的顺序出错,系统会抛出一个错误,描述如下:
The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form-beans?,global-exceptions?,global-forwards?,
action-mappings?,controller?,message-resources*,plug-in*)". [109]
刚看到这个错误,我总以为是某个元素的拼写出了错误,把整个文件仔细检查了一遍,没有发现任何拼写作错误。查了资料才知道,struts-config.xml中的元素有严格的顺序,他们的顺序应该是象下面这个样子:
<struts−config>
上面的错误提示不是说元素有拼写错误,而是说struts-config.xml必须按照display-name-->description-->datasources-->form-beans-->global-forwards-->action-mappings-->controller-->message_resources-->plug-in的顺序书写
<data−sources>
<form−beans>
<global−forwards>
<action−mappings>
<controller />
<message−resource />
<plug−in />
</struts−config><data−source>
</data−source>
</data−sources></data−source>
<form−beans>
<form−bean />
</form−beans><global−forwards>
<forward />
</global−forwards><action−mappings>
<action/>
</action−mappings><controller />
<message−resource />
<plug−in />
上面的错误提示不是说元素有拼写错误,而是说struts-config.xml必须按照display-name-->description-->datasources-->form-beans-->global-forwards-->action-mappings-->controller-->message_resources-->plug-in的顺序书写
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
- The content of element type "struts-config" must match 解决方案
- The content of element type "struts-config" must match "(data-sources?,form-
- The content of element type "struts-config" must match "(display-name?,description?,data-sources?,fo
- The content of element type "struts-config" must match的解决方法
- arse Error at line 58 column 17: The content of element type "struts-config" must match "(display-na
- mybatis-config.xml:报SAXParseException: The content of element type "configuration" must match
- 完全解决struts启动时报错:The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-for
- struts.xml错误提示:The content of element type "package" must match "(result-types?,interceptors?,defaul
- struts.xml中提示content of element type "package" must match
- The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s
- The content of element type "struts" must match "(package|include|bean|constant)*".
- "org.xml.sax.SAXParseException: The content of element type "class" must match" 异常解决
- mybatis配置文件,注意标签配置顺序。否则报错The content of element type "configuration" must match "(properties?,settin
- The content of element type "log4j:configuration" must match "(renderer*,log4j.xml文件中标签顺序有误
- he content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-stack?)".解决方法
- 在struts-config.xml配置文件顺序异常的问题
- org.xml.sax.SAXParseException: Document root element "struts-config", must match
- 用字符串的方式读取XML
- yum命令详解
- JavaScript中的字符串乘法
- 标准库bitset类型介绍
- Introducing home screen widgets and the AppWidget framework (翻译)
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
- VS2008 快捷键
- Java工具类--中文转拼音
- >
- winform窗体中嵌入网页(DHTML代码和winfrom应用程序交互)
- python thread stack trace
- 二分法查找___查找前必先排好序
- oracle关于时间/日期的操作
- Jain-sip