struts.xml报错Referenced file contains errors (http://struts.apache.org/dtds/struts-2.0.dt

来源:互联网 发布:王羽的大招笔记淘宝 编辑:程序博客网 时间:2024/05/18 02:44
 从struts2-core-2.x.x.jar中解压取出struts-2.0.dtd,打开Eclipse菜单的[Window]-[Properties],打开对话框.在左边的树形列表中选择[Eclipse]-[XML]-[XML Catalog],此时右边显示相应的内容.在右边[XML Catalog Entries]下方有一个[Add]按钮,单击它,在弹出的对话框中输入:
          Location:UseStruts2/src/struts 2.0.dtd(这个选择你刚取出来的 struts-2.0.dtd文件)
          Key Type:Public ID
          Key:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
选择[OK]即可添加.
0 0
原创粉丝点击