Tomcat's JSP Engine and tomcat JSP Engine

Source: Internet
Author: User

Tomcat's JSP Engine and tomcat JSP Engine

The jasper component of tomcat must be used to parse jsp files into class files.
Jasper is the JSP Engine Used in tomcat, and Jasper 2 is used in Tomcat 6. Compared with the original version, Jasper has made many improvements, such: JSP Tag Buffer Pool, background compilation, automatic re-compilation during page change, JDT compilation in Eclipse, and so on.
Simply put, it is to parse JSP files not recognized by JVM into java files and compile them into class files for use. Currently, there are many JSP parsing engines, and Jasper is used in Tomcat.
In Tomcat, you can configure the Jasper option by configuring the content in CATALINA_HOME/conf/web. xml (the content in web. xml is very long and part of it is truncated ):
<Servlet>
<Servlet-name> jsp </servlet-name>
<Servlet-class> org. apache. jasper. servlet. JspServlet </servlet-class>
<Init-param>
<Param-name> fork </param-name>
<Param-value> false </param-value>
</Init-param>
<Init-param>
<Param-name> xpoweredBy </param-name>
<Param-value> false </param-value>
</Init-param>
<Load-on-startup> 3 </load-on-startup>
</Servlet>

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.