1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <c:if test="${start != 1 }"> <a href="boardList.do?page=1" style="color: #24a828; text-decoration: none">[처음]</a> <a href="boardList.do?page=${start-1 }" style="color: #24a828; text-decoration: none">[이전]</a> </c:if> <c:forEach var="cnt" begin="${start }" end="${end }" varStatus="status"> <a href="boardList.do?page=${status.index }" style="color: #24a828; text-decoration: none">[${status.index}]</a> </c:forEach> <c:if test="${end < last }"> <a href="boardList.do?page=${end+1 }" style="color: #24a828; text-decoration: none">[다음]</a> <a href="boardList.do?page=${last }" style="color: #24a828; text-decoration: none">[마지막]</a> </c:if> | cs |
스프링 컨트롤러 가능한 반환유형
데이터+페이지 ->ModelAndView
페이지 -> String
반환유형에 페이지에 대한 정보만 있는경우
가져갈 데이터가 필요하다면 매개변수에 Model참조변수를 두면
빈 바구니가 생기고 이 바구니에 데이터를 담으면 가져가짐
' IOT 기반 응용 SW과정 > Web Programing' 카테고리의 다른 글
Day77 (0) | 2016.07.07 |
---|---|
Day73 (0) | 2016.07.01 |
Day70 페이징 처리 (0) | 2016.06.28 |
Day69 API -jason (1) | 2016.06.27 |
Day68 네이버 API - 책검색 (0) | 2016.06.24 |