velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: How to catch Velocity rendering errors
Date Thu, 26 Oct 2006 14:16:22 GMT
You can either override the VelocityViewServlet's error() method or
the performMerge() method to do this.  I'd recommend the former.

On 10/26/06, Steve O'Hara <sohara@pivotal-solutions.co.uk> wrote:
>
> I'm extending VelocityViewServlet and using handleRequest to return a
> Template.
> Is there anyway in which I can catch and handle data/parse errors
> generated from the Template during the rendering phase?
>
> At the moment, if I've got a velocity template error, the error
> information is sent to the browser - I'd like to capture this and
> perhaps manage it's display a little better.
>
> Thanks
>
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message