原因是那个网址已经没有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.
打开网址,发现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.