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.
Hai Timothy Toh , The status in browser(IE) DONE tells the excution status of browser.For example we can examine that "[B]opening http://hostname/XXX.xx[b]" as status text when we try to access the page.It will not imply the error in the page or in the URL.(Even error in the ERL,it used to show "[b]Done[b]" ).
Karan V Praba.
posted 16 years ago
So you agree with me that it is misleading ? This is especially so when the incomplete erroneous page (so happen) looks fine to the user.
Not looking good. I think this might be the end. Wait! Is that a tiny ad?