This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlets life cycle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets life cycle" Watch "servlets life cycle" New topic
Author

servlets life cycle

Ravi kapa
Ranch Hand

Joined: Jan 05, 2012
Posts: 86
Hi this is ravi,i read the head first servlets and jsp book.It says that container calls are invoke init,service,destroy methods on servlets so i have a doubt that thease are container methods or servlets methods.Can any one suggest me please
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

They are methods of the servlet. The container creates instances of the servlets and calls those methods on the instances.
Ravi kapa
Ranch Hand

Joined: Jan 05, 2012
Posts: 86
thanq for the immediate reply paul..
 
Don't get me started about those stupid light bulbs.
 
subject: servlets life cycle
 
Similar Threads
servlet container
how to check tomcat is running or not from a batch file
instance of a servlet
what will be the output
"public static void main(String[] args)" rule?