struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Liu <>
Subject <logic:iterate> index question
Date Tue, 22 Jul 2003 16:00:29 GMT
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"%>'>
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?


Charles Liu

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

View raw message