//-----------------------------------------------------controller--------------------
Calendar c = Calendar.getInstance();
model.addAttribute("c", c);
//-------------------------------------------------jsp-----------------------
<c:if test="${vo.offerTime.getTimeInMillis() - c.getTimeInMillis() > 0 }">
<a class="" target="_blank" href="${rootUrl}app/common/coalStore/detail/${vo.id}">查看</a>
</c:if>
<c:if test="${vo.offerTime.getTimeInMillis() - c.getTimeInMillis() < 0 }">
<a class="" target="_blank" href="${rootUrl}app/common/sunShop/detail/${vo.id}">查看1</a>
</c:if>