728x90
반응형
<jsp:useBean id="now" class="java.util.Date" />
<fmt:formatDate var="year" value="${now}" pattern="yyyy" />
<select class="base" name="longYear" id="longYear">
<option value="">전체</option>
<c:forEach var="i" begin="2015" end="${year+1}">
<option value="${i}" <c:if test="${i eq result.longYear}">selected="selected"</c:if> >${i} </option>
</c:forEach>
</select>
728x90
반응형