struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Pandey" <>
Subject RE: Runtime Expression in logic:equal
Date Wed, 02 Aug 2006 04:38:44 GMT
Why don't you use displaytags

Chetan Pandey

-----Original Message-----
From: Puneet Lakhina [] 
Sent: Wednesday, August 02, 2006 12:31 PM
To: Struts Users Mailing List
Subject: Runtime Expression in logic:equal

I have a collection over which Im iterating using logic iterate tag and
inside that im creating the rows of a table. I need to color the rows of the
table alternately. I have used the attribute indexId in in the iterate tag
But i need to use some kind of runtime expression in logic:equal tag to know
even and odd rows. I could always do it with simple jsp, but if there is an
option to do it in struts it will be really useful.

i mean something like the following

<logic:iterate id = "idname" collection="mycollection" indexId="index" >
<logic:equal name="index "property "someruntime expression" "value="0">
<tr color="red"></tr>
<logic:notEqual name="index "property "someruntime expression" "value="0">
<tr color="green"></tr>


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

View raw message