Bookmark Topic Watch Topic
  • New Topic

Obtaining reference to Servlet Config  RSS feed

 
Rakesh Mehra
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please explain super.init(config) role w.r.t to below in simple words:

public init(ServletConfig config){
super.init(config);
}
The call to super.init(config) ensures that GenericServlet class receives a reference to the ServletConfig object.The implementation of the GenericServlet class maintains a reference to the ServletConfig object(as a private transient instance variable) and requires that super.init(config)be call in subclasses.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please be sure to check the Servlets FAQ before posting to see if your question has already been answered, as this one has.
[ November 21, 2007: Message edited by: Bear Bibeault ]
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!