If we override init method which takes (ServletConfig) as argument then why should we call super.init(ServletConfig)??
posted 7 years ago
Because the init(ServletConfig) from the GeneriServlet class gives the Servlet the the ServletConfig object (one per servlet) which can be used later on by the Servlet to get access to its say init-params. This is done by the container so if you want to override the method you should call the super.init(ServletConfig).
SCJP 5<br />Brainbench Certified in C++<br />PMP<br />Dallas,TX