however, this is quite ugly - you end up having to write two outputs for
what is basically the same problem, hence the reference to OR.
That means maintaining two Stuff's which are identical
thoughts? (except for suggesting tiles which confused my designer guys
completely - they already are trying to work out why I am "designing new
HTML elements")
chanoch
----- Original Message -----
From: "Eddie Bush" <***@swbell.net>
To: "Struts Users Mailing List" <struts-***@jakarta.apache.org>
Sent: Tuesday, October 15, 2002 11:26 PM
Subject: Re: using OR condition with logic tags
Post by Sukhenko, Mikhail (Contr)<logic:equal name="foo" value="1">
<!-- Stuff for when foo == 1 -->
</logic:equal>
<logic:equal name="foo" value="2">
<!-- Stuff for when foo == 2 -->
</logic:equal>
-- OR -- JSTL Approach 1
<c:choose>
<c:when test="${foo == 1}">
<!-- Stuff for when foo == 1 -->
</c:when>
<c:when test="${foo == 2}">
<!-- Stuff for when foo == 1 -->
</c:when>
</c:choose>
-- OR -- JSTL Approach 2
<c:choose>
<c:when test="${foo == 1}">
<!-- Stuff for when foo == 1 -->
</c:when>
<c:otherwise>
<!-- Stuff for when foo == 1 -->
</c:otherwise>
</c:choose>
Post by Sukhenko, Mikhail (Contr)Hey, guys!
Do any of you know how to set up an OR condition with logic:equal tags?
<logic:equal name="foo" value="1"> OR <logic:equal name="foo" value="2">
Thanks
--
Eddie Bush
--
<mailto:struts-user-***@jakarta.apache.org>