Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:iterate

 
Ajai
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have the below code snippet which displays list of time values.
I need to show distinctively the max and min time values e.g in some diff color from the rest. I have those two variables say max and min set in the form.I would like to know that while iterating how can I identify the max and min values so that I can format those distinctively.
the angular brackets have been removed in the below code.
<logic:iterate id="allTime" property="allTimeList" name="performanceForm">
<tr>
<TD bean:write name="allTime"/></ TD>
</tr>
</logic:iterate>
Thanks.....
 
Nimchi Yung
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you have scripting variables like minData, maxData.
You could try something like this:

--Nimchi
 
Ajai
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic