SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
Turn on, tune in, drop out.
SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
if you override init(ServletConfig sc) you need to call super.init(ServletConfig sc) because the init(ServletConfig sc) method which you've overridden has to run(that's mandatory)
init()
public void init() throws ServletException
A convenience method which can be overridden so that there�s no need to call super.init(config).
Instead of overriding init(ServletConfig) , simply override this method
and it will be called by GenericServlet.init(ServletConfig config).
The ServletConfig object can still be retrieved via getServletConfig() .
Throws: ServletException - if an exception occurs that interrupts the servlet�s normal operation
init(ServletConfig)
public void init(ServletConfig config) throws ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. See Servlet.init(ServletConfig) .
This implementation stores the ServletConfig object it receives from the
servlet container for later use. When overriding this form of the method, call super.init(config).
Specified By: Servlet.init(ServletConfig) in interface Servlet
Parameters: config - the ServletConfig object that contains configutation information for this servlet
Throws: ServletException - if an exception occurs that interrupts the servlet�s normal operation
Turn on, tune in, drop out.
Turn on, tune in, drop out.
if we override it with ours then ServletConfig will not be available to us and we shall have to store it ourself
Turn on, tune in, drop out.
You'll be left with a servlet where some of the API methods won't work...you'll have to call all of these on the ServletConfig object
Turn on, tune in, drop out.
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |