Re: using OR condition with logic tags

2002-10-16 Thread chanoch
are trying to work out why I am designing new HTML elements) chanoch - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 11:26 PM Subject: Re: using OR condition with logic tags logic:equal name=foo value=1

Re: using OR condition with logic tags

2002-10-16 Thread Eddie Bush
Oh --- OR --- I was thinking ELSE. Sorry. JSTL solution: c:if test=${(foo == 1) || (foo == 2)} !-- relevant code -- /c:if The Struts-based solution would be the same as I mentioned before, I believe. Sorry - I somehow understood you wanted an ELSE! chanoch wrote: however, this is

using OR condition with logic tags

2002-10-16 Thread Sukhenko, Mikhail (Contr)
Hey, guys! Do any of you know how to set up an OR condition with logic:equal tags? i.e. : logic:equal name=foo value=1 OR logic:equal name=foo value=2 Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: using OR condition with logic tags

2002-10-16 Thread Craig R. McClanahan
On Wed, 16 Oct 2002, chanoch wrote: Date: Wed, 16 Oct 2002 20:10:47 +0100 From: chanoch [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: using OR condition with logic tags however, this is quite ugly

using OR condition with logic tags

2002-10-15 Thread Sukhenko, Mikhail (Contr)
Hey, guys! Do any of you know how to set up an OR condition with logic:equal tags? i.e. : logic:equal name=foo value=1 OR logic:equal name=foo value=2 Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: using OR condition with logic tags

2002-10-15 Thread Eddie Bush
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}