Marcello Savino wrote:

Try something like this

<c:when test='${myVar == "1" or myVar2!="2"}' >
</c:when>

Hih, marcello

-----Messaggio originale-----
Da: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Inviato: domenica 17 settembre 2006 21.21
A: Struts Users Mailing List
Oggetto: How to OR condition in JSP using Struts

Hi
I want to check an OR condition in struts using logic tags.??
Can we use logic tags to check OR condition??


Hi,

A simple approach is

<nested:equal property="testProperty" value="orCondition1">
doSomething
</nested:equal>
<nested:equal property="testProperty" value="orCondition2">
doSomething
</nested:equal>

i hope this will solve your problem.

Thanks and regards,
Balwinder Kumar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to