What server are you using? I have seen this happen on JRun4, but never with Tomcat.
Like Satou seems to be getting at, I think the issue is caused because the page is flushed before the error occurs. Once the output is flushed/committed it is impossible to pull it back. Is it a very big page? Would the page buffer have overflowed and forced a flush by the time the exception is raised?
Try putting this on your page, and seeing if the same still happens: <%@ page buffer="32kb" %>
Joined: Jul 26, 2004
I think that is the reason. It is a big page. I am using Tomcat.