Settings in the
jsp:
---------------------
<%@ page autoFlush="true" %>
Background knowledge :
----------------------
If error occured BEFORE the 1 batch of buffered output is flushed, the JSP container will stop processing the current problematic page and redirect to the error page (either the default ugly one or a programmer defined user friendly one).
If error occured AFTER the 1 batch of buffered output is flushed, the JSP container will also stop processing the current problematic page, flush the remaining output in the 2nd (let's assume 2nd) batch of buffered output produced before the error occurred. No redirection.
Problem :
---------
It is fine with me for the 1st case. For the 2nd case, I understand that redirection cannot happen anymore as the HTTP header is already sent to the browser with the 1st batch of buffered output.
What I find misleading/dangerous is that although an error occured, the status bar in IE shows "Done" and the page too, does not have any error message. The browser user had been mislead to believe that the page is completed without any errors.