velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: null in velocity
Date Thu, 02 Dec 2004 15:56:09 GMT
Hi SUBBIAH,

> How to check for null in velocity
> for eg. I load a class in the context Class:: car
> 
> #if ($car.getFuel() = null ?? )

You can use NullTool
  http://wiki.apache.org/jakarta-velocity/NullTool

#if ($null.isNull($car.fuel))

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai <shinobu.kawai@gmail.com>

---------------------------------------------------------------------
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