struts2框架校验文件配置提示The content of element type "validators" must match "(validator)+".
来源:互联网 发布:自学软件编程 编辑:程序博客网 时间:2024/06/11 17:25
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator Config 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd">
<validators>
<field name="..">
.....
</field>
..........
</validators>
将头部文件<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator Config 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd">
改为<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.3//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd">
摘自别人-----
DTD——文档类型定义(Document Type Definition)/
由于XML可以自定义标签,那么自然各人编写的标签不一样,这样同步数据便成了问题,因为其它人不知道某个标签应该怎么用,表示什么意思.DTD就是为了解决此问题的!
DTD是一种保证XML文档格式正确的有效方法,可以比较XML文档和DTD文件来看文档是否符合规范,元素和标签使用是否正确。一个DTD文档包含:元素的定义规则,元素间关系的定义规则,元素可使用的属性,可使用的实体或符号规则。
DTD分为内部DTD与外部DTD,内部DTD包含在XML文档中,外部DTD则通过URL引用.一个DTD文件是以.dtd结尾的文本文件
在XML中引入DTD DOCTYPE 文档类型声明
内部DTD,可以将standalone设置成yes.
换成这个好用的原因应该元素之间的定义规则把!自己的理解,欢迎吐槽。
- struts2框架校验文件配置提示The content of element type "validators" must match "(validator)+".
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- Hibernate配置文件错误提示,The content of element type "list" must match "(meta*,subselect?,cache?,synchroniz
- struts.xml错误提示:The content of element type "package" must match "(result-types?,interceptors?,defaul
- web.xml中提示错误The content of element type "web-app" must match
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2配置文件错误(The content of element type “package” must match**)
- struts2 问题 The content of element type "package" must match "(result-types?,interceptors?,
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- ibatis:The content of element type "sqlMap" must match
- The content of element type "package" must match...
- The content of element type "struts-config" must match 解决方案
- The content of element type "package" must match 。。。。。。
- The content of element type "package" must match 随笔
- The content of element type "web-app" must match "
- Android写入文件到sdcard中
- 学习杂记(三)c语言
- Java——对象初始化顺序
- MTK QT Linux flashtool试用总结
- 机器学习之感知机学习笔记第一篇:求输入空间R中任意一点X0到超平面S的距离
- struts2框架校验文件配置提示The content of element type "validators" must match "(validator)+".
- DDS-正弦-Modelsim和MATLAB
- MTK6577+Android之Camera驱动) ~% d
- Binder学习笔记
- 设计模式-状态模式
- 用两个栈实现队列
- Pixhawk原生固件PX4之日期时间的确定
- Spring Aop解析自定义注解
- AJax基于JavaScript实现注册时局部判断用户名是否已被使用