1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<%
Calendar cal = Calendar.getInstance();
// 현재년도 + 2년을 더한 값을 뿌려준다.
String year = String.valueOf(y + 2);
%>
<body>
<c:set var="endy" value="<%=year%>" />
<select id="PROGRAM_YEAR" name="PROGRAM_YEAR" title="년도" class="select w100" required="required">
<option value="">선택</option>
<c:forEach begin="2019" end="${endy}" var="i">
<fmt:formatNumber var="year" minIntegerDigits="4" value="${ i }" groupingUsed="false" />
<option value="<c:out value="${ year }" />" ><c:out value="${ year }" />년</option>
</c:forEach>
</select>
</body>
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
'WORK > HTML' 카테고리의 다른 글
html 에서 indexOf 사용하기 (0) | 2019.01.03 |
---|