GenericServlet implements Servlet and ServletConfig. So why do we need to use the method defined in the Servlet interface getServletConfig()? If by default the GenericServlet is implementing the ServletConfig the following should have the same results: getServletConfig().getInitParameter("parm1"); this.getInitParameter("parm1"); What do you think?
There is no difference between the two methods. It is always convinient to use the getInitParameter() and getInitPArameterNames() defined in javax.serrvlet.GenericServlet Thanks Rajeev
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
ScroogeXHTML - fast RTF to HTML and XHTML conversion