IOT 기반 응용 SW과정/Web Programing
Day72 스프링 게시판
피캋
2016. 6. 30. 10:15
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참조변수를 두면
빈 바구니가 생기고 이 바구니에 데이터를 담으면 가져가짐