File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes init() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: init() method