首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

struts2中xml验证无效解决办法

2013-10-21 
struts2中xml验证无效struts2中xml验证无效!DOCTYPE validators PUBLIC-//OpenSymphony Group//XWork Va

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

热点排行