You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by hmkmajeed <hm...@gmail.com> on 2008/07/17 07:55:02 UTC
how to use logical operator in struts logic:equal
Hi All,
I need to translate:
if ( a == 'option1' || a == 'option2' )
to struts code....
I don't know how to put || or && in <logic:equal.... ?�?�?�?
Thanks in advance
--
View this message in context: http://www.nabble.com/how-to-use-logical-operator-in-struts-logic%3Aequal-tp18502051p18502051.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to use logical operator in struts logic:equal
Posted by hmkmajeed <hm...@gmail.com>.
Thanks for the info Nuwan,
but is there anyway to do without using JSTL?..
nuwan chandrasoma-2 wrote:
>
> Hi,
>
> Why dont you give a try with JSTL <c:if> tag. it has more control over
> the logic you want to check.
>
> Thanks,
>
> Nuwan
>
>
> hmkmajeed wrote:
>> Hi All,
>>
>> I need to translate:
>>
>> if ( a == 'option1' || a == 'option2' )
>>
>> to struts code....
>>
>> I don't know how to put || or && in <logic:equal.... ?�?�?�?
>>
>> Thanks in advance
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/how-to-use-logical-operator-in-struts-logic%3Aequal-tp18502051p18502445.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to use logical operator in struts logic:equal
Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,
Why dont you give a try with JSTL <c:if> tag. it has more control over
the logic you want to check.
Thanks,
Nuwan
hmkmajeed wrote:
> Hi All,
>
> I need to translate:
>
> if ( a == 'option1' || a == 'option2' )
>
> to struts code....
>
> I don't know how to put || or && in <logic:equal.... ?�?�?�?
>
> Thanks in advance
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org