Checking OR , AND conditions in <logic:equal> tag?

Hi,

How to check both OR , AND condition using a <logic:equal> tag?

For eg,

When i try to give like this..It is not working..

<logic:equal name="status" value="1 || 2">

//do whatever--

<logic:equal>

Evn.. u can help me in this scenario...Expecting the replies..

Thanks,

--JavaCrazyLover--

[369 byte] By [AnanthJavaa] at [2007-11-27 8:51:14]
# 1
Good question, I never tried this. what if you use, if conditions after <logic:equal tag.>
skp71a at 2007-7-12 21:04:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
skp... That doesn't make any sense....Where we can use JSTL <c:if> and test it as well. But i want to know whether it is possible using <logic:equal>? Evn..u can help me in this...
AnanthJavaa at 2007-7-12 21:04:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
No replies...
AnanthJavaa at 2007-7-12 21:04:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

The only way to do this using <logic:equal> is:

<logic:equal name="status" value="1 ">

// do whatever--

<logic:equal>

<logic:equal name="status" value="2 ">

// do same as above--

<logic:equal>

If u want to implement AND use nested <logic:equal>

Cheers!!

vinayak_ra at 2007-7-12 21:04:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...