myeclipse8.5中写struts.xml配置文件时,没有提示功能.txt
2011-05-31 16:00
531 查看
在myeclipse8.5中写struts2的struts.xml配置文件时,没有提示功能,可以这样解决:
---------------------------------------------------------------------------------------------------------------------------------------------------
1,打开window-preferences-myeclipse enterprise workbench-files and editors-xml-xml catalog,
点add..,出现一对话框,location栏选file system,找到struts-2.0.14-all/struts-2.0.14/src/core/src/main/resources目录下的struts-2.0.dtd文件,打开,然后key type 选择uri,下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd,点击OK,这样再次打开struts.xml时应该就有提示了。
2,当你输入元素后,如果没有属性提示,比如输入<action name="" ></action>,不能再继续提示action中的属性的话,需要做如下修改:
打开window-preferences-general-keys,在右边找到content Assist这一栏,如果这一栏中binding下面有值,点击remove binding,然后在下面的binding栏,选择另一个快捷键,比如‘alt+,’,点击OK。
重新打开struts.xml文件,需要属性提示时,按所设置的快捷键,就会出现属性提示。
-----------------------------------------------------------------------------------------------------------------------------------------------------
按照网上介绍的这样做,还是没用。
最后发现原来我的源文件路径里有中文,改成英文就OK了!
3,
1: 点击window – preferences – 搜索 catalog – add
2:选择key type为URI
3:key: http://struts.apache.org/dtds/struts-2.0.dtd
该文件是 struts.xml文件中的,复制即可
4:location: 对应的dtd文件,位于struts-core包中,解压开,指定相应位置,
如:D:/Struts2.1.6/soft/struts- 2.1.6 /lib/struts2-core-2.1.6/struts-2.0.dtd
---------------------------------------------------------------------------------------------------------------------------------------------------
1,打开window-preferences-myeclipse enterprise workbench-files and editors-xml-xml catalog,
点add..,出现一对话框,location栏选file system,找到struts-2.0.14-all/struts-2.0.14/src/core/src/main/resources目录下的struts-2.0.dtd文件,打开,然后key type 选择uri,下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd,点击OK,这样再次打开struts.xml时应该就有提示了。
2,当你输入元素后,如果没有属性提示,比如输入<action name="" ></action>,不能再继续提示action中的属性的话,需要做如下修改:
打开window-preferences-general-keys,在右边找到content Assist这一栏,如果这一栏中binding下面有值,点击remove binding,然后在下面的binding栏,选择另一个快捷键,比如‘alt+,’,点击OK。
重新打开struts.xml文件,需要属性提示时,按所设置的快捷键,就会出现属性提示。
-----------------------------------------------------------------------------------------------------------------------------------------------------
按照网上介绍的这样做,还是没用。
最后发现原来我的源文件路径里有中文,改成英文就OK了!
3,
1: 点击window – preferences – 搜索 catalog – add
2:选择key type为URI
3:key: http://struts.apache.org/dtds/struts-2.0.dtd
该文件是 struts.xml文件中的,复制即可
4:location: 对应的dtd文件,位于struts-core包中,解压开,指定相应位置,
如:D:/Struts2.1.6/soft/struts- 2.1.6 /lib/struts2-core-2.1.6/struts-2.0.dtd
相关文章推荐
- myeclipse中写struts.xml配置文件打开提示功能
- Myeclipse2014中struts配置xml文件自动提示
- spring配置文件ApplicationContext.xml文件里面没有提示功能
- spring配置文件ApplicationContext.xml文件里面没有提示功能
- spring配置文件ApplicationContext.xml文件里面代码没有提示功能
- MyEclipse中配置struts.xml了后但还是没有自动提示怎么办?
- 怎样设置才能在MyEclipse中让struts.xml文件出现自动提示的功能
- myeclipse下dwr.xml配置文件没有自动提示解决办法
- spring配置文件ApplicationContext.xml里面class等没有提示功能
- eclipse(xmlbuddy插件)为xml文件自动提示(同MyEclipse编辑XML的提示功能),以spring配置文件为例
- myeclipse下dwr.xml配置文件没有自动提示解决办法
- myeclipse下dwr.xml配置文件没有自动提示解决办法
- MyEclipse 编写xml 配置文件没有提示, 配置 dtd
- spring配置文件ApplicationContext.xml里面class等没有提示功能
- MyEclipse中配置struts.xml自动提示的方法(参考网址:http://m.jb51.net/?src=http://www.jb51.net/softjc/84129.html)
- myeclipse2014 开发spring配置文件xml代码不提示的解决方法
- 在编写xsd文件时,不能使用xml注释,否则会导致NetBeans没有代码提示功能
- 帮你彻底解决eclipse(myeclipse)中写struts.xml配置文件
- 为 eclipse 的 hibernate 配置文件(*.hbm.xml)加上自动提示功能
- MyEclipse中配置struts.xml自动提示