myeclipse为xml文件写标签时做自动补全功能。
将struts2-core-***.jar文件解压得到struts-2.0.dtd文件(2.0为版本号),
到myeclipse-Window-preferences-MyEclipse-Files and Editors-XML-XMLcatalog进行配置
点击Add按钮,key type选择URI,key值填struts.xml文件中的
http://struts.apache.org/dtds/struts-2.0.dtd,value值为dtd文件的所在位置
转载于:https://blog.51cto.com/7533613/1721536