struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <markl...@libero.it>
Subject Re: if condition with "or"
Date Thu, 05 Dec 2002 11:32:43 GMT
Can't you make a collection, iterate though the 'or' (||) values

Do something once and then breakout? Like a switch statement

Umm not something i've tried i'll get back to you after i've run some tests.

Cheers mark

On 5-12-2002 12:13, "Jon.Ridgway" <Jon.Ridgway@upco.co.uk> wrote:

> Hi Jana,
> 
> You might want to look at struts-el (JSTL expression language extension for
> struts). To implement with logic:eqal I think you would have to have three
> separate logic:equal blocks each containing the same jsp code, perhaps
> included.
> 
> Jon Ridgway
> 
> 
> -----Original Message-----
> From: Jana Navaneethan [mailto:jana.navaneethan@labs.gte.com]
> Sent: 04 December 2002 22:24
> To: Struts Users Mailing List
> Subject: if condition with "or"
> 
> Hi,
>     I want to use <logic:equal> in my JSP to replace the following code.
> 
> if  (count = 0 || count = 2 || count = 4)
> do something.....
> 
> How to achieve this using <logic:equal> By the count is index value of the
> iterator i.e indexId.
> 
> Thanks in advance,
> Jana.
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence. Your
> co-operation in this matter is greatly appreciated.
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 
> 


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


Mime
View raw message