- Client (Usually web browser) access the web server and makes a HTTP request.
- The web server receives the request and handed off it to the servlet container.
- The servlet container determines which servlet to invoke based on the configuration of its servlets, and calls it with objects representing request and response.
- The servlet uses the request object to get the details about the client, parameters sent as part of the request, and other relevant data. The servlet process the request and sends the data back to the client in the form of response object.
- Once the servlet finished processing the request, the servlet container ensures that the response flushed properly and returns control back to the host web server.
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Friday, 11 July 2014
How does Servlet Container work?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment