게시물에 "New" 같은거 달기

<%@page import="java.util.Calendar"%>
<%@page import="java.util.Date"%>
		<%
			Calendar forBoardMarkercal = Calendar.getInstance();
			forBoardMarkercal.add(Calendar.DATE, -7);
			forBoardMarkercal.setTime(new Date());
			 int forBoardMarkerYear = forBoardMarkercal.get(Calendar.YEAR);
			 int forBoardMarkerTempMonth = forBoardMarkercal.get(Calendar.MONTH)+1;
			 String forBoardMarkerMonth = null;
			 if(forBoardMarkerTempMonth < 10){
				 forBoardMarkerMonth = "0"+forBoardMarkerTempMonth;
			 }else{
				 forBoardMarkerMonth = ""+forBoardMarkerTempMonth;
			 };
			 int forBoardMarkerTempDate = forBoardMarkercal.get(Calendar.DATE);
			 String forBoardMarkerDate = null;
			 if(forBoardMarkerTempDate < 10){
				 forBoardMarkerDate = "0"+forBoardMarkerTempDate;
			 }else{
				 forBoardMarkerDate = ""+forBoardMarkerTempDate;
			 };
		%>

--html
<%=forBoardMarkerYear%><%=forBoardMarkerMonth%><%=forBoardMarkerDate%>
${fn:substring(list.regDate,0,4)}${fn:substring(list.regDate,5,7)}${fn:substring(list.regDate,8,10)}
						    
						    	"새글"	
						    
JSP Calender yyyy:mm:dd 형식 "0"+ 을 안붙이면 그냥 YYYY:M:D 이렇게나옴. 나름대로 의 해결방안