Automatically publish Web projects to Tomcat WebApps in eclipse

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.