A way to publish a JSP web site

Source: Internet
Author: User

The most flexible way to publish a JSP website we can configure it in the Servlet.xml file in the Tomcat's Conf directory
Create a new context tag within its host tag to place a JSP application, and if it is here, then we don't need to
Your work is under the WebApps folder and you want to 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"/>
Explain:
Path is a virtual path, which means it will follow the physical path specified by Docbase, followed by the virtual path to find your home page. Workdir is the work of this application.
A directory that stores the files that are generated by the runtime in connection with this application.


Related Article

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.