Friday 11 July 2014

How does Servlet Container work?

  1. Client (Usually web browser) access the web server and makes a HTTP request.
  2. The web server receives the request and handed off it to the servlet container.
  3. The servlet container determines which servlet to invoke based on the configuration of its servlets, and calls it with objects representing request and response.
  4. 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.
  5. 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.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment