tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Procek, Brett" <pro...@lucent.com>
Subject RE: Regarding IF tag (Utility)
Date Mon, 20 Aug 2001 19:55:44 GMT
The If utility tag is pretty simple. The 'predicate' attribute only
takes either "true" or "false" as strings I believe.  Ofcourse, the
value of the 'predicate' attribute is calculated at runtime, so it is
possible to make some use for this tag.  AND and OR operations work just
like they do in Java.  I hope this helps.
 
<tag:If predicate="<%= (x <= 5)%>" >
...
</tag:If>
<tag:If predicate="<%= (x > 5)%>" >
...
</tag:If>
<tag:If predicate="true">
....
</tag:If>
<tag:If predicate="false">
....
</tag:If>
 
Brett

-----Original Message-----
From: Marcus Andrade [mailto:marcusandrade@yahoo.com.br]
Sent: Monday, August 20, 2001 7:10 AM
To: taglibs-user@jakarta.apache.org
Subject: Regarding IF tag (Utility)


Does somebody know how to use the IF tag of the Utility Tag Library ? I
can´t figure out how to use AND, OR operations with that. Some examples
would be nice. 
Thanks
 
Marcus Andrade Peixoto
São Paulo/Brazil
 
 


Mime
View raw message