tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amos Shapira <amos.shap...@webcollage.com>
Subject RE: If/Else tag?
Date Mon, 04 Jun 2001 07:39:44 GMT
Thanks.  I'm aware of this tag, but without an option for an "else"
clause the "If" tag alone is not quite useful in many cases.
 
For now, we resorted to using scriptlets when "else" is required.
 
Someone has sent code to implement an "if/then/else" tag "family",
which sort of answers my question (it doesn't accept "<%=" for the
predicate, but that can probably be combined with the existing If
tag) I hope the idea will get integrated into the taglib.
 
Cheers,
 
--Amos

-----Original Message-----
From: Procek, Brett [mailto:procek@lucent.com]
Sent: Monday, June 04, 2001 8:07 AM
To: taglibs-user@jakarta.apache.org
Subject: RE: If/Else tag?


The Utility tags provide functionality that might be useful to you.

Example:
<util:If predicate="<%= x == 5%>">
...
</util:If>
 
Brett

-----Original Message----- 
From: Amos Shapira 
Sent: 2001-05-29 (화) 오전 4:15 
To: 'taglibs-user@jakarta.apache.org' 
Cc: 
Subject: If/Else tag?



Hello,

Does anyone know if an how can I get a simple if/else pattern using the
Jakarta
taglibs?

I could think of a switch/case pattern (with the most basic form "switch"ing
on a
boolean value) to simulate this, but there is no switch tag either.

Is there another standard way to achieve this using the existing tags?

I'd also welcome pointers to other taglibs which provide this option.

Thanks,

--Amos




Mime
View raw message