This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.