在myeclipse打开struts-config.xml提示报错
Could not open the editor: Project BBS 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.
这个是因为什么?
------解决方案--------------------解决办法一:,在项目下的.project文件里添加一行代码<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>,结果如下
</projectDescription>
......
</natures>
......
<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>
</natures>
</projectDescription>
刷新工程就可以正常打开了
解决办法二:
右键单击工程,选择MyEclipse-> add Struts capabilities
http://blog.csdn.net/liyanhui1001/article/details/6456438 遇到问题可以先百度谷歌一下
------解决方案--------------------右键-->open with TextEditor 试试。你这是struts1的项目,右键项目-->MyEclipse-> add Struts capabilities应该就好了