struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <rahul.akol...@gmail.com>
Subject Re: How use AND,OR in logic struts tag lib
Date Wed, 26 Apr 2006 17:34:07 GMT
On 4/26/06, Angel Navarro <angelna@gmail.com> wrote:
> Hi,
>
> I need to translate:
>
> if ( a == 'option1'  || a == 'option2' )
>
<snip/>

Use JSTL:

<c:if test="${a eq 'option1' or a eq 'option2'}">
  ...
</c:if>

"and" is also available in EL similarly.

-Rahul


> to struts code....
> I don't know how put || or && in <logic:equal.... ?¿?¿?¿?
>
> Thanks
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message