Hi Neil,
But this will lead to repetition of code.
If there are multiple OR's then it will lead to a big code.
Any other idea u have
Regards,
Krishna Mohan


 
INFOSYS TECHNOLOGIES LIMITED
3rd Floor | "Bhavani" Technopark | Trivandrum  695 581 | India
Phone +91 471 2700888 Extn 7365 | Mobile: +919895532610
[EMAIL PROTECTED]| www.infosys.com 

-----Original Message-----
From: Neil Erdwien [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 05, 2005 11:16 AM
To: Struts Users Mailing List
Subject: Re: How to implement OR functionality in STRUTS

How about:

    <logic:equal ...>
       ...
    </logic:equal>
    <logic:equal ...>
       ...
    </logic:equal>

BTW, you might look into the similar JSTL tags: if and choose.  They 
will likely have a longer life than the Struts equivalents.  My 
philosophy is to use JSTL whenever possible.


Krishna Mohan Radhakrishnan wrote:
> 
>  
> Hi all,
> A very simple question.
> 
> <logic:equal ......>
>       <logic:equal......>
>       .......
> .........
> 
> 
>       </logic:equal......>
> </logic:equal......>
> 
> The above code is just like an AND function.
> Only if both the conditions are equal it will go inside the loop.
> 
> Similarly How will we do it for an OR  condition.
> If any condition satisfies it should go inside the loop.
> 
> May be this sounds a very silly question. I am a fresher to struts.
> That's Y?
> 
> Regards,
> Krishna Mohan R
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Neil Erdwien, [EMAIL PROTECTED], Web Technologies Manager
Computing and Network Services, Kansas State University

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




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

Reply via email to