velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: aborting the event loop
Date Mon, 09 May 2005 22:41:37 GMT
You could write a custom ReferenceInsertionEventHandler  and throw an
exception if the reference is not valid.  Not sure if this will work though
(e.g. is it called even for bad references).

http://jakarta.apache.org/velocity/developer-guide.html#EventCartridge%20and%20Event%20Handlers

WILL

----- Original Message ----- 
From: "Stephen Morris" <c-stephen.morris@mci.com>
To: <velocity-user@jakarta.apache.org>
Sent: Monday, May 09, 2005 2:57 PM
Subject: aborting the event loop


> Using the event/callback mechanism, I'd like to be able to exit from the
> event loop if a reference value cannot be determined (e.g. because of a
> programming error), instead of processing the entire template and then
> signaling an error.
>
> Thanks for any suggestion.
>
>
>
>
>
> ---------------------------------------------------------------------
> 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