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.
Normally in servlet code, for service(), doGet(), or doPost() methods, we have: PrintWriter out = res.getWriter(); // use out to write HTML out.close(); But is it a must to say out.close()? What if I don't? A WebSphere book says "the web application server automatically closes the PrintWriter when the service method exits." I wonder if that is vendor dependent, or all J2EE-compliant servers are required to do so. Can someone let me know? Thank you in advance! Tony