You should probably create a global exception handler in your Struts configuration file. Something like this:
<global-exceptions> <exception key="global.error.internal" path="/ErrorPage.jsp" scope="request" type="java.lang.Exception"/> </global-exceptions> hope this helps --Alen ----- Original Message ----- From: "Syed Kazim Hussain" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 7:52 AM Subject: Handling Exceptions > I have been using Struts as the MVC framework and Sitemesh as templates. > It is working smoothly. Only problem is I want to forward the page to an > error page whenever there is an exception. > > So in Tomcat, I have specified the option for forwarding the request to > ErrorPage.jsp whenever we encounter a 500 Internal Server Error. > > But the page is not being forwarded. Instead an exception is thrown on > the > Error Page: > > java.lang.IllegalStateException: getOutputStream() has already been > called for this response > > Any comments ! > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]