首先找到window——preferences——XMl——xml catalog
点 add..,出现一对话框,location栏选file system,
找到struts-2.0.14-all\struts-2.0.14\src\core\src\main\resources目录下的 struts-2.0.dtd文件,
打开,然后key type 选择uri,
下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd,点击OK,
这样再次打开struts.xml时应该就有提示了(注意需要用xml editor打开xml文件)
点 add..,出现一对话框,location栏选file system,
找到struts-2.0.14-all\struts-2.0.14\src\core\src\main\resources目录下的 struts-2.0.dtd文件,
打开,然后key type 选择uri,
下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd,点击OK,
这样再次打开struts.xml时应该就有提示了(注意需要用xml editor打开xml文件)