Configure the Tomcat server so that the JSP can be updated and displayed immediately after modification

Source: Internet
Author: User

Modify the \ conf \ WEB. xml file in the Tomcat directory and find the followingCode: JSP org. Apache. Jasper. servlet. jspservlet fork false xpoweredby false 3 Add the following line of code between JSP org. Apache. Jasper. servlet. jspservlet 3: save with development true. A website built with TomcatProgram, We modify the class or web. after the XML, You need to restart tomcat to make the modified content take effect. In fact, when we set the site directory with reloadable = "true", we do not have to restart Tomcat when modifying the website information in the future, for example: Description: Path = "/jspbook" indicates the domain name, that is
Http: // ip_domaninname/jspbook; docbase = "jspbook" indicates the directory location of the platform, that is, {tomcat_install} \ webapps \ jspbook; debug indicates setting the debug level, 0 indicates that the minimum information is provided, 9 indicates that the maximum information is provided, and reloadable indicates that when Tomcat is executed. when XML is updated, it is automatically reloaded without restarting tomcat.

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.