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...

Life Cycle of servlets?

Answer Posted / prashant

1> Server loads the servlet.
2> Server creats one or more instances of the servlet
3> Server calls the init()method of each Servlet instance
4> Servlet request is received
5> Servlet service()method processes the request
6> Servlet calls the service()method of the servlet instance
7> Servlet service()method then process the request & send
the output to the client
8> Servlet waits until next request is received (if yes
continue from step no-4 )
9> Servlet is unloaded by the server by calling the destroy
()method

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by web applications? Explain web application directory arrangement?

927


Name the packages that work with servlet?

958


Can we use threads in Servlets?

1102


Is servlet a server side scripting language?

1082


Explain the working of service() method of a servlet.

916


What is servlet instance?

1002


What is dispatcher servlet?

1027


Why do we have servlet filters?

993


What is a cookie What is the difference between session and cookie

1031


List out the difference between ServletConfig and ServletContext?

1000


What do you mean by session tracking?

1167


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1024


Explain jsessionid?

991


What do you mean by servlet context?

1078


Why is a constructor needed in a servlet even if we use the init method?

1109