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

来源:互联网 发布:花生壳免费域名不能用 编辑:程序博客网 时间:2024/05/21 11:17

原文地址:http://www.blogjava.net/hwqismyname/archive/2010/05/28/322108.html


解决办法一:,在项目下的.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了

0 0
原创粉丝点击