jsp页面拿到系统时间
<jsp:useBean id="now" class="java.util.Date" />
<fmt:formatDate value="<%=new Date() %>" pattern="yyyy-MM-dd HH:mm:ss"/>
<fmt:formatDate value="${activityDetail.activityEndTime}" pattern="yyyy-MM-dd HH:mm:ss" var="trainDate"/> 活动结束时间
<fmt:formatDate value="${now}" type="both" dateStyle="long" pattern="yyyy-MM-dd HH:mm:ss" var="nowDate"/> 当前时间
<c:if test="${nowDate gt trainDate}" var="rs"> 当前时间大于活动结束时间
<a href="javascript:void(0)" title="" class="bm" style="background-color: #B1B1B1;" >已 结 束</a></div>
</c:if>
<c:if test="${!rs}"> 当前时间不大于活动结束时间
<c:if test="${applicantList != '' and applicantList != null}">
<a href="javascript:void(0)" title="" class="bm" >已 报 名</a></div>
</c:if>
<c:if test="${applicantList == ''}">
<a href="javascript:void(0)" title="" class="bm" id="bm_change" onclick="applySubmit();">报 名</a></div>
</c:if>
</c:if>