Servlet logo
Servlet Tutorial

Overview  
HTTP/CGI  
Servlets  
JSP  
Resources  

Zameer's Education


 

Introduction | Servlets & HTTP | Life-Cycle | Sessions | Summary | Examples

Life Cycle: Loading | Servicing Requests | Threading | Reloading

Overview

A servlet is managed through a well-defined lifecycle described in the servlet specification. The servlet lifecycle describes how a servlet is loaded, instantiated, initialized, services requests, destroyed and finally garbaged collected. Every servlet engine must adhere to the servlet lifecycle, but as we shall see, there are many different ways to implement it.


Servlet Life cycle