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