http://www.iteye.com/problems/54472求struts2.0时间比较的方法?这个问题,可以很简单的实现,是用xxq 的方法
<s:iterator value="zbgsList" status="status">
<dl <s:if test="#status.index%2==0">class='fff'</s:if>>
<dt>
<a href="#">
<s:if test="ftitle.length()>29">
<s:property value="ftitle.substring(0,29)"/>…
</s:if>
<s:else>
<s:property value="ftitle"/>
</s:else>
</a>
<%
request.setAttribute("defaultTime", new java.util.Date().getTime()/24/3600/1000);
Date ddd=(Date)request.getAttribute("defDate1");
request.setAttribute("lessTime",ddd.getTime()/24/3600/1000);
%>
<s:if test ="((#request.defaultTime-#request.lessTime))<=3">
<img src='images/new01.gif' align='middle'/>
</s:if>
</dt>
<dd ><s:date name="defDate1" format="yyyy-MM-dd HH:hh:ss"/>
</dd>
</dl>
</s:iterator>