Laurie: Is there an app-wide way to set the buffer size or do I need to put a page buffer directive in each of my JSPs?
Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper > Sent: Friday, June 24, 2005 7:32 PM > To: user@struts.apache.org > Subject: Re: Strange error-page behavior > > > The problem is that by the time the error occurs in your JSP, > the response has already been committed. When Tomcat tries to > issue the redirect to the error page, it fails. Your only > recouse is to increase the size of the response buffer. To be > robust, the buffer would need to be at least as large as your > heaviest page... Not great, but about all you can do. > > BTW, using a Struts action for the error page should be fine > I think; a 'resource' in a web application is anything > addressed by a URL, effectively. Just make sure that your > error page processing is robust -- i.e. it needs to catch and > handle any exceptions itself. > > L. > > Neil Aggarwal wrote: > > > Wendy: > > > > I tried setting my error page directive to: > > <error-page> > > <exception-type>java.lang.Throwable</exception-type> > > <location>/errorPage.jsp</location> > > </error-page> > > > > I am still getting an IllegalStateException. > > > > That seems weird to me. > > > > Neil > > > > > > -- > > Neil Aggarwal, JAMM Consulting, (214) 986-3533, > www.JAMMConsulting.com > > FREE! Valuable info on how your business can reduce > operating costs by > > 17% or more in 6 months or less! > http://newsletter.JAMMConsulting.com > > > > > >>-----Original Message----- > >>From: Wendy Smoak [mailto:[EMAIL PROTECTED] > >>Sent: Friday, June 24, 2005 6:53 PM > >>To: Struts Users Mailing List > >>Subject: Re: Strange error-page behavior > >> > >> > >>From: "Neil Aggarwal" <[EMAIL PROTECTED]> > >> > >>>The reason I need to execute code is for me to send an error report > >>>to the site admin. > >> > >>Have you tried using an actual file (.jsp or .html) that does > >>nothing but > >>forward or redirect to the Struts action? Or perhaps... can > >>you just call > >>the whatever-sends-the-email from the JSP? > >> > >>Let me know if you get <location> to work with a path that's > >>not an actual > >>file, I haven't been able to find anything definitive that > >>says you can't, > >>but it never worked for me. > >> > >>-- > >>Wendy Smoak > >> > >> > >>------------------------------------------------------------ > --------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > -- > Laurie, Open Source advocate, Java geek and novice blogger: > http://www.holoweb.net/~laurie/ > > > --------------------------------------------------------------------- > 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]