日期:2014-05-18  浏览次数:20636 次

struts2中xml验证无效
struts2中xml验证无效
<!DOCTYPE validators PUBLIC
   "-//OpenSymphony Group//XWork Validator 1.0.3//EN"
   "http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd">
上面这段有报警告
The file cannot be validated as the XML definition "http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd" that is specified as describing 
 the syntax of the file cannot be located.

------解决方案--------------------
版本中dtd和xml的配置相冲突。。
两种解决方法:改dtd版本规范(换版本)符合xml的格式 或者 改xml的格式符合当前dtd版本规范