The processing process of JSP

Source: Internet
Author: User
1. The client makes a request to the server through a browser that contains the path to the requested resource, so that when the server receives the request, it can know the requested resource.
2. The server loads the requested JSP file according to the received client request.
The JSP engine in the 3.WEB server converts the loaded JSP file into a servlet.
The 4.JSP engine compiles the generated servlet code into a class file.
5. The server executes this class file.
6. The final server sends execution results to the browser for display.
Not every request needs to be repeated for this kind of processing. When the server receives a request for a page for the first time, the JSP engine starts the process above and compiles the requested JSP file into a class file. In the subsequent request to the page, if the page did not make any changes, the server can only call the class file directly to execute. So when a JSP page is requested for the first time, there are some delays, and when you visit it, you feel a lot quicker.
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.