Selasa, 18 April 2017

What is the life cycle of a servlet in java

Instantiation   In this stage the servlet container searches the web.xml file for servlet. If the servlet is found, it will create an object for the corresponding servlet class in the memory. Servlet container can search for the servlet file in the local disk (in server) or in a remote location.   Initialization   After instantiation of the servlet, the servlet container initializes the servlet object. Servlet container invokes the init(ServletConfig) method on the servlet object. This stage may raise ServletException or UnavailableException.   Servicing   After initialization, servlet container creates the objects of HTTPServletRequest and HTTPServletResponse and invokes the

The post What is the life cycle of a servlet in java appeared first on Coding Security.


What is the life cycle of a servlet in java
read more

Tidak ada komentar:

Posting Komentar