A:FileàDynamic Web Project"project name : Test"
B: Right-click webcontent,new-->jsp File
c : Right-click test , run as à run on Server à server Configuration Span style= "font-family: the song Body;" >->apache tomcat V7.0 Server à Select tomcat Installation Directory "f:\tool\java_software\eclipse--web\apache-tomcat-7.0.25 , browse Address: http://localhost:8080/test/newfile.jsp (right-click newfile.jsp-->run As-->run on server-->finish )
1. Description:Eclipse uses project data from its own workspace by default and does not automatically publish Web projects to Tomcat 's WebApps
2, double-click the server, to ensure that there is no project under the server , Otherwise, can not be modified to clean a bit
Clean:
3. Popup Server Configuration Information window
4, choose Use Tomcat installation,server path will follow the change, the deploy path is modified to WebApps (preferably using the full directory, such as: D:\\tomcat\\webapps), The default is Wtpwebapps,ctrl+s save
5, configure the Server, right-click the project . jsp file àrun. The project has been published to WebAppsunder Tomcat . LAN access:http://192.168.5.103:8080/test/NewFile.jsp
Automatically publish Web projects to Tomcat WebApps in eclipse