I was experiencing that myself, but at a more controllable rate. I guess you can try to use <error-page> in web.xml. However, in my experience, the error may appear halfway the page and then there's no escape. The headers have been sent, part of the content was sent (no-one knows how much) and I cannot think of a way to still reconstruct a decent error page as the browser already started to parse the good one when the error appeared. I'd like to hear of a solution to this, too. (apart from streming first to memory buffer and then re-streming to browser if no error appeared).
Florin ----- Original Message ----- From: "Manish" <[EMAIL PROTECTED]> To: "Velocity Users List" <velocity-user@jakarta.apache.org> Sent: Tuesday, March 01, 2005 7:07 AM Subject: Trapping template not found error > We are using struts + velocity combination and all errors are trapped and > handled by GlobalExceptionHandler, however when velocity template is not > found (missing or due to any other reason), I see stack trace in the > browser - > > Org.apache.velocity.exception.ResourceNotFoundException > > How can I make sure that this error is handled gracefully as well ad a > decent message is shown to the user. > A lot of these templates are being handled by a designer now, and are > referred from another template with #parse > > TIA, > - Manish > > > > --------------------------------------------------------------------- > 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]