One way to publish a JSP website

Source: Internet
Author: User

One of the most flexible methods for publishing JSP websites can be configured in the Servlet. xml file under the conf directory of Tomcat
Create a new Context tag in the Host tag to deploy a JSP application. If you deploy it here, we do not need
Your work has been taken to the webapps folder. If you want to put it there, you can put it there.

<Context path = "/BookModule" reloadable = "true" docBase = "D: BookBookModule" workDir = "D: Bookwork"/>
<Context path = "/WebModule" reloadable = "true" docBase = "D:/code/WebModule" workDir = "D: codework"/>
Explanation:
The path is a virtual path, that is, it will find your home page based on the physical path specified by docBase, and workDir is the job of this application.
Directory to store the files generated during the runtime related to this application.


 

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.