struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Liu <charles....@morganstanley.com>
Subject <logic:iterate> index question
Date Tue, 22 Jul 2003 16:00:29 GMT
Hi,
What is the best way to test the value of indexId?
For example,
<logic:iterate id="people" name="employees" indexId="index">
<tr class='<%=index.intValue()%2==0?"Even":"Odd"%>'>
...
</logic:iterate>
This works but it depends on the fact that index has type of Integer. Is 
there a better way to do the same kind of testing but hide the 
implementation detail?

Thanks

-- 
Charles Liu



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


Mime
View raw message