struts2配置内置校验器
2016-01-08 20:29
411 查看
首页 >
精品文库 >The file cannot be validated as the XML definition...
[摘要:本日正在进修ssh框架的时间,碰到了如许一个题目: The file cannot be validated as the XML definition http://www.opensymphony.com/xwork/xwork- validator-1.0.2.dtd that is specified as describing the syntax of the file cannot]
今天在学习ssh框架的时候,遇到了这样一个问题:
The file cannot be validated as the XML definition "http://www.opensymphony.com/xwork/xwork-
validator-1.0.2.dtd" that is specified as describing the syntax of the file cannot be located.
出问题的代码:
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
错误提示:
The file cannot be validated as the XML definition "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd" that is specified as describing the syntax of the file cannot be located.
出问题的原因貌似是http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd这个网址访问不了
解决办法:
将<!DOCTYPE>这一项改为:
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
在配置内置校验器时,应在XML文件头加上<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">,其中field的name指向页面的name属性
精品文库 >The file cannot be validated as the XML definition...
The file cannot be validated as the XML definition...
0条评论[摘要:本日正在进修ssh框架的时间,碰到了如许一个题目: The file cannot be validated as the XML definition http://www.opensymphony.com/xwork/xwork- validator-1.0.2.dtd that is specified as describing the syntax of the file cannot]
今天在学习ssh框架的时候,遇到了这样一个问题:
The file cannot be validated as the XML definition "http://www.opensymphony.com/xwork/xwork-
validator-1.0.2.dtd" that is specified as describing the syntax of the file cannot be located.
出问题的代码:
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
错误提示:
The file cannot be validated as the XML definition "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd" that is specified as describing the syntax of the file cannot be located.
出问题的原因貌似是http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd这个网址访问不了
解决办法:
将<!DOCTYPE>这一项改为:
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
在配置内置校验器时,应在XML文件头加上<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">,其中field的name指向页面的name属性
相关文章推荐
- JQuery+Strusts1.x无刷新登录
- java struts常见错误以及原因分析
- Struts之logic标签库详解
- python str与repr的区别
- 通过实例深入学习Java的Struts框架中的OGNL表达式使用
- Java的Struts框架中append标签与generator标签的使用
- php函数之子字符串替换 str_replace
- char str[] 与 char *str的区别详细解析
- c_str()的用法详细解析
- struts2的select标签用法实例分析
- SSH框架网上商城项目第20战之在线支付平台
- 在Java的Struts框架下进行web编程的入门教程
- 详解Java的Struts框架中注释的用法
- java中struts 框架的实现
- 利用Java的Struts框架实现电子邮件发送功能
- 在Java的Struts框架中ONGL表达式的基础使用入门
- 详解Java的Struts框架中栈值和OGNL的使用
- Java的Struts框架简介与环境配置教程
- Java的Struts框架中的if/else标签使用详解
- 简单说明Java的Struts框架中merge标签的使用方法