<logic:iterate id="myBean" name="MyBeans" type="com.mine.bean.MyBean"> ... <logic:lessThan name="myBean" property="taxOwed" value="0"> <td bgcolor="red"> </logic:lessThan> <logic:greaterEqual name="myBean" property="taxOwed" value="0"> <td bgcolor="white"> </logic:greaterEqual> ... </logic:iterate>
You could also do it with JSTL: <c:forEach items="sessionScope.myBeans" var="myBean"> ... <c:if test="${myBean.taxOwed < 0}"><td bgcolor="red"></c:if> <c:if test="${myBean.taxOwed >= 0}"><td bgcolor="white"></c:if> ... </c:forEach> Greg -----Original Message----- From: Srikanth Gubba [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:24 PM To: '[EMAIL PROTECTED]' Subject: Logic Iterate --URGENT Please Hi all, I have a doubt using logic iterate: Is it possible to display a row in a different color based on a value of the bean while iterating it? Actually, I am displaying the tax history of a person and I want to highlight the row or a field (tax owed) to red color if the tax paid column shows delinquent. Please let me know if u have any suggestions or ideas. Thanks in Advance, Srikanth Gubba. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]