hi everyone, could you please explain to me how super.init(s1),where s1 is a serverconfig refrence works? how getinitparametres() is invoked without using s1 in the subclass which use getinitparameters() when super.init() is used? please explain me in steps: bye asheet
As an aside, if you plan to be a sucessful Java programmer you really should take more care with the spelling and upper/lower case of your questions and examples. I realize that for many people here, English is not their first language, and I try my best to understand the phrasing of questions, but the exact details of class names, method names, error messages and so on are vital. I assume you are referring to the getInitParameter() method implemented in the GenericServlet class and inherited by the HttpServlet class. If you call super.init(config) in your servlet, then the ServletConfig supplied to your init routine is passed back to the init(ServletConfig) method of genericServlet, which stores a reference to the supplied ServletConfig object. If you later call getInitParameter(name) in your servlet, it invokes the getInitParameter(String) method implemented in GenericServlet which gets the specified parameter value from the stored ServletContext and returns it to your servlet. Does this help?