File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() method

 
Rajib Sarma
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An empty implementation is provided by javax.servlet.GenericServlet so that you dont have to implement it if you dont need to.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic