1. Import the project created under MyEclipse zyl-->
There is no sign of a small globe on the project icon, which means it is not a Web project
2. Turn the project into a Web project, right--->properties--> the project facets--> click Convert to Faceted form ...
Check the two items in the Red line (Java and dynamic Web Module)
Click OK, then go to the project root directory to find the Org.eclipse.wst.common.project.facet.core.xml file under the. Settings folder, open with Notepad
Change Jst.web's version to 2.5 and save it.
Press F5 to refresh the project in eclipse
3. Change the location of the page in the project:
After step 2, the project directory structure becomes:
Right-click on the item-->properties--> Select Deployment Assembly--> Select the Remove button to the right of the webcontent point
Then, click the Add button and select Folder-->next
When Webroot is selected, click Finish--> and click OK
Delete webcontent folder
Finally, add library--server runtime-> to the project build path to select Tomcat
Reference article:
Http://www.cnblogs.com/zhouyalei/archive/2013/01/30/2882651.html
This article is from the "bit accumulation" blog, please be sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1743824
Eclipse Import MyEclipse Project