This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
well im guessing.... in init(ServletConfig config) all the initparameters are the tomcat or the specific server parameters and in this case the web.xml from the conf direcotry is used and when it is init() then we can specify our own initparams acc to the logic of the program and call it from the web-inf/web.xml? i might be completely wrong....plz correct me if so Preetham
"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
hmmm.. intresting.. This init() is just for convinience. If you want to do something in initilization. Then by default you must call super.init(). But if you override init() and write your code in it there is no need to call init(servletConfig). The GenericServlet.init(config) always calls the init() in the end so your code will get executed. This is just a matter of convinence. I cannot think of anything else.