On Thu, May 27, 2010 at 12:54 PM, laredotornado <laredotorn...@gmail.com> wrote: > > You mean for me to put this at the top of my error page (500.jsp), correct? > If so, I tried that, but still got the partially rendered page outlined in > the Tomcat bug mentioned earlier. >
There is no way around that. Once you have filled the buffer, and some portion of it has been commited, game over. There is no taking back the content that was already sent to the browser. Your only solution to get a clean redirect to the error page is to make the page buffer large enough to cache the entire page. That way, when your error occurs, tomcat can clear the buffer, and redirect to the error page. If a portion of the response has already been committed to the browser, what will happen is tomcat will clear the buffer of whatever has not yet been sent... but then the contents of the error handling page will be sent - and the browser will simply append that onto the end of the page it has... which usually completely hoses the validity of the HTML. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org