tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Ward" <cw...@horizon-asset.co.uk>
Subject RE: <c:if test="${nc.readyDate !=''}">
Date Fri, 08 Apr 2005 09:02:01 GMT

> 
> > <c:if test="${nc.readyDate !=''}"> seems to
> > always return true  whether it contains a value or not..
> > 
> > how should i rewrite the test?
> 
> Use the empty operator. ${empty nc.readyDate} will return true if 
> readyDate has not been populated.
> 
> -Rahul
> 

... and ${not empty nc.readyDate} for your specific test

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message