velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: VelocityViewServlet - Can it throw errors instead of displaying?
Date Tue, 30 Aug 2005 19:49:05 GMT
extend the VelocityViewServlet and override the error(...) method. :) 
you can just wrap and rethrow the exceptions and errors.

On 8/30/05, Joe Toth <> wrote:
> I use the VelocityViewServlet and whenever I have something like a
> nullpointerexception it looks like the servlet does not throw the error,
> instead it catches it and displays
> VelocityViewServlet : Error processing the template I wanted to know if
> there is anyway to make it just throw the error, so the servlet container
> can handle it? I want to just display a generic error message instead.
> Thanks

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message