SE452: The servlet lifecycle [11/24] Previous pageContentsNext page

The life cycle of a servlet is controlled by the servlet engine. Servlets are instantiated (loaded) and destroyed (unloaded) by the servlet engine. For a generic servlet, the servlet engine calls the following methods:

void init()
abstract void service(ServletRequest request,
         ServletResponse response)
void destroy()

Previous pageContentsNext page