解决的方
法是指定本地的dtd文件,以便达到检测和提示的功能。
1.打开[Window]-[Properties],打开对话框.
2.在左边的树形列表中选择[MyEclipse]-[Files-Editors]-[XML]-[XML Catalog],此时右边显示相应
的内容.
3.在右边[XML Catalog Entries]下方有一个[Add]按钮,单击它,在弹出的对话框中输入:
Location:UseStruts2/src/struts 2.0.dtd
Key Type:Public ID
Key:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
4.选择[OK]即可添加.