Servlet working principle (Read Xilingpo "in-depth analysis of Javaweb Technology Insider") notes

Source: Internet
Author: User

Before we introduce how servlets work, let's first look at the servlet containers that are matched to the servlet, for example, in Tomcat

Basic knowledge of 1.Tomcat containers

The container for Tomcat is classified into four levels from the top below: Container,engine,host,context.

The container that manages the servlet directly is the context container. A context container in Tomcat corresponds to a web App app

2.servlet container Start-up process

When you add an app to Tomcat, Tomcat creates a servlet container of type Standardcontext. And will add some basic parameters to the container, such as the access path, the most important thing for this container

Add a servletconfig.

Servlet working principle (Read Xilingpo "in-depth analysis of Javaweb Technology Insider") notes

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.