一、Myeclipse web项目 导入到eclipse web项目中
(1).请首先确保你的机器上的eclipse是javaee版本的,或者已经安装看wtp插件
(2).按一般步骤导入到eclipse中,先Close Project,然后修改eclipse workplace中对应项目中的.project文件:
在 <natures> </natures>中加入
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
在 <buildSpec> </buildSpec>中加入
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
(3).Open Project,然后刷新项目,在项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module
确定后,打开工程.settings目录,找到org.eclipse.wst.common.component文件,修改一下自己的jsp目录:
<wb-resource deploy-path="/" source-path="/WebContent"/>
配置Context Root 和Content Directory 以及源码路径。