users@glassfish.java.net

Re: servlet: try ... finally {out.close();} <-bad idea?

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Sun, 30 May 2010 14:06:29 +0200

2010/5/29 Hassan Schroeder <hassan.schroeder_at_gmail.com>:
> I'm not sure what this has to do specifically with Glassfish, but I'd
> say current best practice is to never generate output (logging aside)
> from a servlet;

Hmmm... best practice is to never generate output from a servlet? What
else servlet actually can do?
And what about the problem I mentioned, when after exception, the
servlet container generated OK HTTP Status?