Explain the life cycle of servlet?

Answer Posted / sasi kumar

Initialization:A servlet is first loaded and initialized
usually when it is request by the corresponding client.
Service:After initilization,the servlet serve client on
request,implementing the application logic clients of the
web application they belong to.
Destruction:When all pending request are processed and the
servlets have been idle for a specific amount of time,they
may be destroy by the servlet and release all the resources
they occupy.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the activation groupworks?

1679


Why do threads block on i/o?

686


What are the purpose of introspection?

680


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2562


What class is used to create Server side object ?

1676






What are the services in RMI ?

1888


Why doesn’t the focus feature on the tag work in every circumstance?

573


What is the difference between the session.update() method and the session.lock() method?

560


How primary key is implemented in Oracle?

1920


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

574


What is mdb and what is the special feature of that?

571


What are the sequence of steps to write pub or sub model kind of application?

1895


Why is actionform a base class rather than an interface?

574


What is the purpose of the notifyall() method?

613


What is the difference between RMI registry and OS Agent?

635