Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ques on init

 
Nikhil Bansal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

If in a servlet you are calling init method and passing the ServletConfig object then why is mandatory to call the init method of the superclass.

eg:

public void init ( ServletConfig config ) throws ServletException
{
super.init ( config ); // why is it mandatory
}


Regards

Nikhil
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the servlet FAQ?
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at ServletsFaq
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic