Life Cycle of the Servlet.

Hello Friends,

This is one of my tutorials on Servlet. As we all know, servlets are managed by the web container and among the various responsibilities of the container, life cycle of servlet is the most important one. The life cycle defines that how the servlet is loaded, instantiated and initialized, how it handles requests from clients and how it is taken out of service. The servlet’s life cycle methods are defined in the javax.servlet.Servlet interface which is implemented by every Servlet class by extending the abstract classes – “GenericServlet or HttpServlet”. Continue reading “Life Cycle of the Servlet.”