Try something like ... <logic:iterate indexId="index" ...> <bean:define id="indexMod2" value='<%= index % 2 %>'/> <logic:equal name="indexMod2" value="0"> markup for even row here </logic:equal> <logic:notEqual name="indexMod2" value="0"> markup for odd row here </logic:equal> </logic:iterate>
-----Original Message----- From: Cohan, Sean [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 2:40 PM To: Struts (E-mail) Subject: Iterate Index Evaluation I need to iterate over a collection and be able to tell whether the current index is odd or even. Any ideas on how I can use the logic tag for this? <logic:match name="index" value="odd or even?"> Thanks. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>