您的位置:首页 > 大数据 > 人工智能

Referenced file contains errors (http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd)

2014-05-12 21:29 459 查看
原因是那个网址已经没有dtd约束文件了,

打开网址,发现opensymphony的网址已经迁移走了,因为xwork的东西已经并入struts2中,成为apache的一部分.

 

所有的dtd已经移交到“http://struts.apache.org/dtds/ ”这个地方.

 

以后struts2的校验器的规范要改成:

 

 

< ?xml version="1.0" encoding="UTF-8"?>

< !DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">

 

这样就不会报错了,运行正常.over.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: