You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Satyabrata Dash <Sa...@aceva.com> on 2003/10/22 22:26:18 UTC
RE: Logic Iterate
Here is sample code snippet.
<c:forEach var="item" items='${itemList}'>
<c:choose>
<c:when test="${item.delinquent}">
Display Red color
</c:when>
<c:otherwise>
Display green color
</c:otherwise>
</c:choose>
</c:forEach>
-----Original Message-----
From: Srikanth Gubba [mailto:sgubba@lylesdata.com]
Sent: Wednesday, October 22, 2003 12:24 PM
To: 'struts-user@jakarta.apache.org'
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org