You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2015/07/27 19:11:48 UTC
Explicitly using null in a template
All,
I have a situation where I need to explicitly pass NULL to a method on
an object. Can I simply do something like this:
$myObject.getSomething($referenceThatIsCertainlyNull)
?
I seem to remember there being a helper object (VelocityTool?) that had
nice things in it like $helper.null or something like that, but I can't
seem to find a reference for it.
Thanks,
-chris
Re: Explicitly using null in a template
Posted by Sergiu Dumitriu <se...@gmail.com>.
I remember reading somewhere that you should use $NULL, but can't
remember where.
On 07/27/2015 01:11 PM, Christopher Schultz wrote:
> All,
>
> I have a situation where I need to explicitly pass NULL to a method on
> an object. Can I simply do something like this:
>
> $myObject.getSomething($referenceThatIsCertainlyNull)
>
> ?
>
> I seem to remember there being a helper object (VelocityTool?) that had
> nice things in it like $helper.null or something like that, but I can't
> seem to find a reference for it.
>
> Thanks,
> -chris
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org