Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Page getting on Tomcat 4.0.6 is distorted

Status
Not open for further replies.

Pro79

Programmer
Dec 11, 2003
24
IN
Hi
I am using Tomcat 4.0.6 for making JSP/Servlets applcation. The problem I am getting is whenever there is any exception on the JSP Page the errorPage I am getting is distorted
Is it Tomcat Problem or something else.

The same application I made in Struts, the problem is still presisting.

Please reply this

Thank you
 
What do you mean by "distorted"? Do you mean missing page component/images?
 
by distorted mean that page displayed after exception is half of the processed page where exception occured and half contains error Page

 
That's because the intended page is partially processed and the processed content already flushed/sent to the client before the exception occured in the middle of the page that redirected to the error page.

Try use page directive to disable autoFlush in the JSP page, but make sure is has sufficient buffer. e.g.

<%@ page buffer="64k" autoFlush= "false"%>

then flush the content manually at the end of the page.

<% out.flush() %>


and at the begining of the errorPage, clear the out buffer. e.g.

<% out.clear() %>


Hope this help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top