cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: Test for blank or null string in Jx
Date Fri, 22 Jul 2005 21:52:56 GMT

On Jul 22, 2005, at 2:37 PM, JD Daniels wrote:

> Hmm. to my way of thinking you need two checks, because null is not 
> the same as ''
>
> <jx:if test="$var!=null">
>     <jx:if test="empty($var)">
>          var is empty
>     </jx:if>
>     var is null
> </jx:if>
>

no, empty( ) returns true for null  (see 
http://jakarta.apache.org/commons/jexl/reference/syntax.html).

—ml—


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message