用MyEclipse Struts Editor编辑器编辑Struts的配置文件错误处理

来源:互联网 发布:linux r w x 编辑:程序博客网 时间:2024/06/07 04:47
用MyEclipse Struts Editor编辑器编辑Struts的配置文件的时候,出现如下错误:
“Project 'abc' 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.”

解决方法:
方法1.在项目上点击右键,选择“myeclipe”下的“add struts capabilities”即可解决

方法2.若方法一不能解决,则找到项目所在目录,找到.project文件。在<natures>节点中添加<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,重新打开项目问题即可解决。
原创粉丝点击