Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

servlet life cycle?

Answer Posted / veeraiah dasari

Servlet lifecycle consists of three stages
1)generation
2)Service to the client
3)death of servlet
1)Generation:This stage occurs when a client request comes
to the server,it immediately generates a servlet for that
particular client by calling init() method.This method can
be called only once in a servlet life cycle.
2)Service :After servlet has been created,it provides the
service to the particular client by calling service() method.
This can be called many times in a servlet lifecycle.
3)death of servlet:In this after completion of the service
to the client.it is the responsibility of the server to
destroy the servlet by calling destroy() method.This method
can be called only once in servlet life cycle.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are filters?

1050


What is servlet and its use?

1117


Can we fetch the attributes related to a servlet on a different servlet?

1150


Can servlet have a constructor ?

1052


Is that servlet is pure java object or not?

1129


What is the difference between servlet and filter?

959


How do you configure a centralized error handler in servlets?

1115


What are the objects involved when a servlet receives a call from client?

1038


How a servlet is unloaded?

1095


explain the advantages of servlet life cycle?

986


What are the different methods of session management in servlets?

1039


What is the use of httpservletrequestwrapper?

1106


What are the types of protocols supported by httpservlet ?

1230


What are the ways to handle multi-threading in servlets?

1088


What are the disadvantages of storing session state in cookies?

1154