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

来源:互联网 发布:浙大冰虫靠谱不知乎 编辑:程序博客网 时间:2024/05/21 15:01

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

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



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

原创粉丝点击