in Eclipse , there are two ways to modify Java engineering into Web engineering to modify Java Engineering in Eclipse into Web engineering:
1, directly modified under the project:. Project file in:
Add the following code to <natures>...</natures>:
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
2, click item: Right click: select properties--Enter Project Facets
3. If your project source code folder is not WTP default SRC, you need to go to Java build path to add the corresponding source code folder. 4. If your Project Web folder is not WTP default webcontent, you will need to modify the file. Open File: < project directory >/.settings/org.eclipse.wst.common.component, find: <wb-resource deploy-path= "/source-path="/ WebContent "tag=" Defaultrootsource "/>
The 4th step is to change the source-path= "/webcontent" to "/webapp" ********