up previous next contents
Next: HTTPServlet Up: Servlets Previous: HelloWorldServlet   Contents

Servlet lifecycle

  • Handled by the servlet container.
  • Create and initialize the servlet.
  • Handle zero or more service calls.
  • Destroy and garbage collect the servlet.
  • A single servlet instance to handle every request.


up previous next contents
Next: HTTPServlet Up: Servlets Previous: HelloWorldServlet   Contents