struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Pierce <>
Subject RE: if condition with "or"
Date Wed, 04 Dec 2002 23:03:48 GMT
How you do it depends on what you're trying to do. logic:equal probably
won't do it for you, as it doesn't have anything that works like an "or"
operator. If you're  formatting the content based on whether it's odd or
even , I use a boolean flag in the <% scriptlet code %>. If you want to use
tags, I think the JSTL logic tags are more flexible.

-----Original Message-----
From: Jana Navaneethan []
Sent: Thursday, 5 December 2002 9:24 AM
To: Struts Users Mailing List
Subject: if condition with "or"

      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,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message