Each servlet has the same life cycle::The Web container is responsible for managing the servlet?s life cycle. The Web container creates an instance of the servlet and then the container calls the init() method. At the completion of the init() method the servlet is in ready state to service requests from clients. The container calls the servlet?s service() method for handling each: The Life Cycle of a Servlet:init ---- servlet initializes and searches for dd(deployment descriptor) in which startup parameters are given:the following steps manage the servlet life cycle -::Servlet life cycle fall on 3 steps :
Category:Servlet Interview Questions
No comments:
Post a Comment