Servlet and JSP Life Cycle
Servlet and JSP Life Cycle
Explain
Servlet and
JSP life cycle
Answers:
Servlet Lifecycle:
init() ->this initalizes the
servlets
initialization informationwith
the configuration
parameters.
1) init()
2) service()
3) destroy()
Contact Ghanshyam
1) init()
2) service()
3) destroy()
Servlet Lifecycle
first the url is collected from
the user generates an http
request, this request is
mapped with the appropriate
servlet and loaded in the
address space of the server.
once the servlet is loaded
the following 3 phases
starts
1. init():
2.service()
3 destroys()