Hi,
I'm still new to
Servlets etc. so please bear with me!
Reading up about them and the beginning of their lives, I noticed that there are two init() methods -
one which takes no args
and
one which has a ServletConfig object.
I believe that the idea is that we, as developers, use the no args one to do any of the initialisation we want.
I then wondered which order these were called by the container, as the book I'm reading (HFSJ p97) mentions init() but not init(ServletConfig).
I've editted the earlier example in the book as a
test so it now reads:
And
Tomcat 5.5 running from the commandline gave me:
This shows to me that my overridden init() was called before init(ServletConfig).
Does this mean that in my init() I am unable to access the servletConfig?
Doesnt that go against the whole point of the init method?
Thanks in advance,
MG
28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%