对struts.xml中不能自动提示的总结:
1. 配置"http://struts.apache.org/dtds/struts-2.0.dtd",在没有网络的情况下,找不到该文件,需要自己配置,配置步骤如下
window - preferences - myeclipse - file and editors - xml - xmlcatalog
选中user specified Entries 点add添加,location:选择struts-2.0.dtd的路径 key type:选择uri key:http://struts.apache.org/dtds/struts-2.0.dtd
保存;
2.此时,打出< 点alt+/就可以自动提示了,如果想不用快捷键就能提示,需要如下配置:
window - preferences - myeclipse - file and editors - xml - xml source
选中automatically make suggestion ,并在下面的prompt.........insert中输入<,
如下图: