This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.