This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
init() is an instance method. This means that, in order for the servlet to invoke init() it needs to have an instance of your servlet. aServlet.init(); In order to have a instance of your servlet, the servlet container needs to have executed an statement which might look like this: aServlet = new YourServlet(); I.e. the constructor gets executed first. Morale of the story: Brush up on your Java fundas! [ June 20, 2003: Message edited by: Panagiotis Varlagas ]