aspose file tools
The moose likes Servlets and the fly likes init() method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "init() method" Watch "init() method" New topic
Author

init() method

Rajib Sarma
Ranch Hand

Joined: Apr 29, 2002
Posts: 34
Hi,
We know that the init() method is invoked at the very beginning of it's life cycle. I want to ask, who provide the init() method for a servlet, if we donot write it in our code?
Thanks in advance.
-Rajib


*** Rajib Prasad Sarma ***<br />==========================
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
An empty implementation is provided by javax.servlet.GenericServlet so that you dont have to implement it if you dont need to.


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: init() method
 
Similar Threads
difference b/w init() and init( config)
Context
Call destroy() inside init()
Garbage Chatacters
init of servlets and jsp