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.
Why are the System.out.println()(SOPs) statements not printed on my console when they are included in the init and destroy methods.? If i write SOPs in my doGet and doPost , they get printed.? Also , i would like toknow whether a servlet and can have acinstructor written? what would be the impact of this contructor on the servlet life cycle? Thanx in advance, Chhaya
System.out.println should print from your init and destroy methods - if not you may have a serious problem. The first thing I would suspect is that the method signatures are not correct. You better double-check by looking at the javax.servlet.GenericServlet JavaDocs. Bill