用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>,重新打开项目问题即可解决。
“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>,重新打开项目问题即可解决。
本文介绍了在使用MyEclipseStrutsEditor编辑Struts配置文件时遇到的问题及两种解决方案:一是通过添加Struts支持;二是手动修改.project文件。
2011

被折叠的 条评论
为什么被折叠?



