| Author |
Mechanism of init method to initialize servlet
|
abhijeet srivastava
Greenhorn
Joined: Aug 22, 2006
Posts: 26
|
|
Hi all! I have some doubts about init method in servlet initialization. 1. if init method is not overridden the which version of init method is called by Container? init() or init(ServletConfig) 2. when init() version of init method is overridden then how Container get ServletConfig object for that servlet? Thaks...
|
 |
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
|
|
Originally posted by abhijeet srivastava: 1. if init method is not overridden the which version of init method is called by Container? init() or init( ServletConfig)
Read the docs.
2. when init() version of init method is overridden then how Container get ServletConfig object for that servlet?
docs.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Also covered in the Servlets FAQ.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Mechanism of init method to initialize servlet
|
|
|