MyEclipse Struts Config Editor打开struts-config.xml时错误的解决方法
来源:互联网 发布:新闻评论 网络直播 编辑:程序博客网 时间:2024/04/28 00:24
最近几天在MyEclipse中建立工程时,没有使用MyEclipse中的Add Struts Capabilities来加入Struts支持,而是手工进行了配置。
1、将Struts所需的jar文件copy到WEB-INF/lib目录下
2、在工程中新建了一个名为"config"的Source Folder,在此文件夹中建立Struts的配置文件struts-config.xml
3、修改WEB-INF目录下的web.xml
然后双击struts-config.xml,准备进行修改,但此时发现默认的MyEclipse Struts Config Editor编辑器打开该文件时出现错误:“org.eclipse.ui.PartInitException: Project newsjq is not configured as a MyEclipse Web-Struts Project. Therefore the MyEclipse Struts Editor may not be used with struts-config.xml. The default XML Editor has been used to open the file instead. ”,此时MyEclipse默认用其MyEclipse XML Editor打开该文件了。
如何解决这个问题呢?在网上搜索了一下,发现网友巴士飞扬的博客上有一个方法非常有效,用编辑器打开该工程文件夹下的.project文件,在<natures></natures>之间增加一个<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>配置即可。
然后就可以用MyEclipse Struts Config Editor打开该struts-config.xml文件了,这时会在struts-config.xml所在的文件夹(这里为config)下产生一个.struts-config.mex文件,这样在MyEclipse Struts Config Editor中就可以使用其Design视图模式了。
- MyEclipse Struts Config Editor打开struts-config.xml时错误的解决方法
- myEclipse 打开struts-config.xml无法打开报错!--Error opening the editor
- myeclipse不能使用默认编辑器打开导入的struts项目的struts-config.xml,Therefore the MyEclipse Struts Editor may not be u
- struts-config.xml打开出错
- MyEclipse打开struts-config xml文件 图形化不显示
- myEclipse 打不开struts-config.xml 报Could not open the editor: An unexpected exception was thrown 错误(转载)
- myEclipse 打不开struts-config.xml 报Could not open the editor: An unexpected exception was thrown 错误(转载)
- struts-config.xml的例子
- struts-config.xml的配置
- STRUTS的struts--config.xml详解
- STRUTS的struts--config.xml详解
- Struts的核心struts-config.xml配置文件
- STRUTS的struts--config.xml详解
- Struts的核心struts-config.xml配置文件
- struts的struts-config
- 打开struts-config.xml 报错 解决办法Could not open the editor
- 打开struts-config.xml 报错 解决办法Could not open the editor
- [struts]Write struts-config.xml
- Jquery AJAX POST和GET区别
- Unable to locate the Javac Compiler in:C:/Program Files/Java/jre1.5.0_22/../lib/tools.jar
- JAVA一年经验,找工作
- log4j配置实例
- javascript工厂方式、构造函数、原型方式
- MyEclipse Struts Config Editor打开struts-config.xml时错误的解决方法
- find和xargs使用-------shell学习(2)
- 循环移位(转)
- fedora13中使得root用户登录图形界面
- Apache+JK+Tomcat负载均衡
- C#中添加注释的快捷键
- ELF文件格式
- memset用法详解
- Linux下安装rsync