1、先找到strust.xml的配置文件,复制http://struts.apache.org/dtds/struts-2.3.dtd,注意:要存在struts2-2.3.dtd的文件才有配置的必要
* http://struts.apache.org/dtds/struts-2.3.dtd
2、选择window --> preferences --> 搜索xml --> 选择xml Catalog
3、选择Add按钮
* key type :选择URI
* key的位置复制的路径拷贝进去,http://struts.apache.org/dtds/struts-2.3.dtd
* Location要本地能找到struts2-2.3.dtd的真实文件路径。点击File System,找到,然后添加。
4、查看源代码
* 将下载的struts-2.3.24.zip导入,就可以。