MyEclipse 打开Struts配置文件时出错
2015-07-13 10:30
495 查看
通过手动加入Struts包来开发J2EE工程,可是结果却发现不能使用Struts的默认编辑器来打开Struts配置文件,双击打开Struts配置文件时,就出错:
Unable to create this part due to an internal error. Reason for the failure: Project fuNan_Demo is not configured as a MyEclipse Web-Struts Project. Therefore the MyEclipse Struts Editor may not be used with struts-action.xml. The default XML Editor has been
used to open the file instead.
解决方案:
在在项目下的.project文件里少了一行代码<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,把这个加上去,刷新,搞定
一般情况
在新建工程之后,右键单击工程,选择MyEclipse-> add Struts capabilities。根据提示将struts组建添加到工程里,再把原工程导入进来。新的工程没有添加Struts能力
转自:http://jc-dreaming.iteye.com/blog/500986
通过手动加入Struts包来开发J2EE工程,可是结果却发现不能使用Struts的默认编辑器来打开Struts配置文件,双击打开Struts配置文件时,就出错:
Unable to create this part due to an internal error. Reason for the failure: Project fuNan_Demo is not configured as a MyEclipse Web-Struts Project. Therefore the MyEclipse Struts Editor may not be used with struts-action.xml. The default XML Editor has been
used to open the file instead.
解决方案:
在在项目下的.project文件里少了一行代码<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,把这个加上去,刷新,搞定
一般情况
在新建工程之后,右键单击工程,选择MyEclipse-> add Struts capabilities。根据提示将struts组建添加到工程里,再把原工程导入进来。新的工程没有添加Struts能力
转自:http://jc-dreaming.iteye.com/blog/500986
相关文章推荐
- java算法学习
- Java Collections工具类
- ubuntu jdk1.7 安装
- [LeetCode][Java] Sudoku Solver
- 深入研究java.lang.Class类
- JAVA集合学习之——Properties类
- Java中的位运算符与基本数据类型
- eclipse常用快捷键
- java并发库之Executors常用的创建ExecutorService的几个方法说明
- java中的堆、栈、常量池
- 深入研究java.lang.ThreadLocal类
- Myeclipse快捷键大全
- spring mvc 异常统一处理方式
- Java调试
- Java 中的关键字 synchronized详解
- java与c#的区别(一)
- Java中普通代码块,构造代码块,静态代码块的代码示例及区分
- Java对象的序列化和反序列化
- 在Myeclipse中添加User Library,用户自己的库
- 水墨大写意笔法模拟简易方法