在myeclipse打开struts-config.xml提示报错

雪夜风花 2014-04-04 03:10:11
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.
这个是因为什么?
...全文
163 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zfthinker 2014-04-04
  • 打赏
  • 举报
回复
右键 open with 试试用其它的方式打开文件
tony4geek 2014-04-04
  • 打赏
  • 举报
回复
重新建个。。
小灯光环 2014-04-04
  • 打赏
  • 举报
回复
右键-->open with TextEditor 试试。你这是struts1的项目,右键项目-->MyEclipse-> add Struts capabilities应该就好了
鱼老壳 2014-04-04
  • 打赏
  • 举报
回复
解决办法一:,在项目下的.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 遇到问题可以先百度谷歌一下

67,538

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧