如何让eclipse辅助提示struts.xml文件的编写

来源:互联网 发布:电路模拟软件中文版 编辑:程序博客网 时间:2024/06/10 09:17

myeclipse:windwos->preferences->myeclipse->files and editors->xml->xmlcatalog->点“add”,在出现的窗口中的location中选“File system”,然后在struts-2.5解压目录的src/core/src/main/resources目录中选择struts-2.5.dtd,例如D:/java/struts-2.1.8.1/src/core/src/main/resources/struts-2.5.dtd,回到设置窗口的时候不要急着关闭窗口,应把窗口中的Key Type改为URI,Key改为http://struts.apache.org/dtds/struts-2.5.dtd--就是struts.xml文件里开头部分声明的那个地址。

 
eclipse:windwos->preferences->xml->xmlcatalog。 

配置完成后,记得refresh一下,然后就有提示功能了


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/fjf133/archive/2010/02/01/5278572.aspx

原创粉丝点击