This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in servlet init method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt in servlet init method" Watch "doubt in servlet init method" New topic
Author

doubt in servlet init method

kavitha vasu
Ranch Hand

Joined: Feb 22, 2007
Posts: 70
Hi

What is the purpose of super.init(config) in my servlets init(ServletConfig config) method


is it needed always?

also,
what is the difference between init() and init(ServletConfig config)

kindly explain me, it is very confusing.

Thanks in advance
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Please read this entry in the Servlets FAQ.


[My Blog]
All roads lead to JavaRanch
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
The Servlets FAQ has an entry on this: http://faq.javaranch.com/java/ServletsFaq#4
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt in servlet init method