Tomcat Load JSP principle

Source: Internet
Author: User
Tomcat loads JSP mainly has the following classes: Jspservletjspservletwrapperjspcompilationcontextjspruntimecontextjsperloadercompiler These classes are all in the Jasper.jar package 1. Tomat the HTTP request through the servlet to Jspservlet2.jspservlet in the context of Jspruntimecontext find Jspservletwrapper, if not found on the new instance, found the words to take out to use 3.JspServlet Wrapper initialization will also initialize a Jspcompilationcontext4.jspservlet service method to transfer the request to Jspservletwrapper to process 5.JspServletWrapper will determine whether the system allows reloading thi S.options.getdevelopment, If you allow the compile method that calls Jspcompilationcontext's compilation method Compile6.jspcompilationcontext to determine if the reference to the ClassLoader Jsperloader is set by judging the timestamp of the JSP file Null7.jsps Ervletwrapper uses the Getservlet method to load (Load method) JSP-compiled class class from Jspcompilationcontext and instantiates 8. Jspcompilationcontext class at load, first to get jsperloader, if it is null will create a new instance, Then let the Jsperloader loader load the JSP class9.jspservletwrapper get the instantiated servlet, the request that Jspservlet turned over to this servlet processing

Tomcat Load JSP principle

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.