`
charliezhang
  • 浏览: 28299 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

MyEclipse: Project xxx is not configured as a MyEclipse Web-Struts Project

阅读更多

Project xxx is not configured as a MyEclipse Web-Struts Project

解决办法一:,在项目下的.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
 
另外,注意:project有没有加入Web-project特性。 
若没有,则项目名点右键,选择MyEclipse --> 添加web-project特性就行了,此时,又一个问题:默认为WebRoot,而我的却为web,在添加web-project特性时修改一下就ok了! 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics