1. myeclipsexml文件写标签时做自动补全功能。

    struts2-core-***.jar文件解压得到struts-2.0.dtd文件(2.0为版本号),

    myeclipse-Window-preferences-MyEclipse-Files and Editors-XML-XMLcatalog进行配置

wKiom1ZpHFfzqJANAADAfAMQFqQ763.png

点击Add按钮,key type选择URIkey值填struts.xml文件中的

http://struts.apache.org/dtds/struts-2.0.dtdvalue值为dtd文件的所在位置

wKiom1ZpHFnSM-FXAABdOZ6hNT8872.png