servlet container, how it works, pros and cons

Source: Internet
Author: User

Transfer from http://blog.sina.com.cn/s/blog_b5a157500101ld71.html

servlet: is based on Java technology, applied to the server-side program components, the essence is Java code, for management and sub-

Send a user request.

servlet container : Used to manage servlets, including loading, instantiating, and destroying Servlets.

Servlet Main Features:

1, dynamically return the entire HTML page according to customer request.

2, you can communicate with other resources on the server, including databases, other Java applications, and using other languages

Write the application.

3, processing connections to multiple Web clients, receiving information from multiple Web client inputs, and sending the results to the appropriate

's server.

4, responds to individual connections on the applet on the Web client, and keeps the connection open, allowing the single

Connect processing of data passing on.

How Servlets work:

Servlet pros and Cons:



Servlet life cycle



Note: The construction method executes first than Init ().

The servlet execution process:

Servle execution diagram: servlet needs to be placed in a container (such as Tomcat)

Detailed implementation process for Servlets

servlet container, how it works, pros and cons

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.