JSP/servlet Study Notes (2)

Source: Internet
Author: User

There are four types of elements in the server. xml file.

1. Top-level class Elements

Including <Server> and <service>, which are located at the top layer of the configuration file.

2. connector Elements

It represents a communication interface between the customer and the service. It is responsible for sending the customer's request to the server and sending the server's response result to the customer.

3. Container Elements

A component that processes customer requests and generates response results. There are three container class elements: Engine, host, and context.

4. nested class Elements

It indicates the components that can be added to the container.

Some basic Tomcat elements:

* <Server>: represents the entire Catalina servlet container. The <Server> element can contain one or more <service> elements.

* <Service>: the element contains one <engine> element and one or more <connector> elements, which share the same <engine>.

* <Connector>: Representatives and customersProgramThe actual interaction component, which is responsible for accepting customer requests and returning response results to the customer.

* <Engine>: Each <service> element can contain only one <engine>. <engine> process customer requests received by all <connector> elements in the same <service>.

* <Host>: A <engine> element can contain multiple

* <Context>: Each <context> represents a single application running on a VM. One

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.