You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Charles Liu <ch...@morganstanley.com> on 2003/07/22 18:00:29 UTC
index question
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