You can set up an InvalidReferenceEventHandler, see
http://velocity.apache.org/engine/releases/velocity-1.5/developer-guide.html#configuring_event_handlers
Claude
Le samedi 27 septembre 2008 à 09:54 +0800, bluejoe a écrit :
> Hi All,
>
>
>
> When Velocity occurs:
>
>
>
> ${a.b}
>
>
>
> if a is null, it will be rendered as "${a.b}"
>
>
>
> I know the way "Quiet Reference Notation":
>
>
>
> $!{a.b}
>
>
>
> but i hope our developers keep using "${a.b}", in spite that null pointer
> appears or not, so, can I let Velocity keep silent just through
> configuration, such as:
>
>
>
> Velocity.setProperty("quietReference", true);
>
>
>
> I don't know if Velocity-1.6 supports this or not, and am eager to know the
> best solution.
>
>
>
> Regards,
>
> bluejoe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]