blueberry80
Programmer
Hi, like to ask whether is there any clue as to solve the below senarios? I have used logic:iterate to loop the record and then used logic:NotEqual to compare the type but struck as to how to get the Latest to put under the latest date.Anyone can help me. Thanks
Type Date
type1 1/1/1999
type1 2/2/2000 Latest
type2 1/1/2001
type2 3/3/2002 Latest
Source code in my jsp:
<% String cType=""; %>
<logicresent name="list">
<logic:iterate id="list1" name="list">
<bean:define id="Type" name="list1" property="type" />
<td>
<bean:define id="type" name="list1" property="type" />
<bean:write name="list1" property="type" />
</td>
<logic:notEqual name="Type" value="<%=cType%>">
Latest</logic:notEqual>
<% cType=type; %>
Type Date
type1 1/1/1999
type1 2/2/2000 Latest
type2 1/1/2001
type2 3/3/2002 Latest
Source code in my jsp:
<% String cType=""; %>
<logicresent name="list">
<logic:iterate id="list1" name="list">
<bean:define id="Type" name="list1" property="type" />
<td>
<bean:define id="type" name="list1" property="type" />
<bean:write name="list1" property="type" />
</td>
<logic:notEqual name="Type" value="<%=cType%>">
Latest</logic:notEqual>
<% cType=type; %>