JSP页面利用标签判断时间前后 <jsp:useBean id="now" /> <c:if test="${now>expiry_date}"><span> Expired</span></c:if>