You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Rafal Krzewski <Ra...@e-point.pl> on 2001/03/03 18:17:40 UTC
Re: merging context
David Esposito wrote:
> I'm actually overriding the init() method that takes no arguments ... I
> don't have the java source to confirm it, but I believe, according to the
> J2EE javadocs, that the init() without args automatically calls
> super.init(config) ... From the docs on init():
>
> "A convenience method which can be overridden so that there's no need to
> call super.init(config). "
Actually it's the other way around:
Defalut implementation of init(ServletConfig) calls init(). Threrefore,
if you are overriding init(ServletConfig) you MUST call
super.init(config).
If you are overriding init(), you don't neet to worry about it.
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:Rafal.Krzewski@e-point.pl
+48 22 8534830 http://e-point.pl