读书人

struts2中xml验证无效解决办法

发布时间: 2013-10-21 17:00:48 作者: rapoo

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版本规范

读书人网 >J2EE开发

热点推荐