반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- web 사진
- inorder
- C언어
- html
- 대이터
- pycharm
- tensorflow
- 결합전문기관
- paragraph
- java역사
- Keras
- mglearn
- 데이터전문기관
- 머신러닝
- classification
- CES 2O21 참여
- postorder
- bccard
- web
- 자료구조
- web 용어
- web 개발
- 재귀함수
- 웹 용어
- cudnn
- broscoding
- CES 2O21 참가
- discrete_scatter
- KNeighborsClassifier
- vscode
Archives
- Today
- Total
bro's coding
JSP.Paging 본문
반응형
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<table class="table table-bordered table-hover boardlist">
<thead>
<tr class="success">
<th>번호</th>
<th class="title">제목</th>
<th>작성자</th>
<th>작성일</th>
<th>조회</th>
</tr>
</thead>
<tbody>
<c:forEach var="pvo" items="${requestScope.list}">
<tr>
<td>${pvo.no }</td>
<td><c:choose>
<c:when test="${sessionScope.mvo!=null}">
<a href="${pageContext.request.contextPath}/PostDetailController.do?no=${pvo.no }"> ${pvo.title }</a>
</c:when>
<c:otherwise>
${pvo.title }
</c:otherwise>
</c:choose></td>
<td>${pvo.memberVO.name }</td>
<td>${pvo.timePosted }</td>
<td>${pvo.hits }</td>
</tr>
</c:forEach>
</tbody>
</table>
<%-- 페이징 처리 --%>
<%-- ${requestScope.pagingBean} --%>
<c:set var="pb" value="${requestScope.pagingBean}"></c:set>
<div class="pagingArea">
<ul class="pagination">
<c:if test="${pb.previousPageGroup}">
<li><a href="ListController.do?pageNo=${pb.startPageOfPageGroup-1}">«</a></li>
</c:if>
<c:forEach var="page" begin="${pb.startPageOfPageGroup}" end="${pb.endPageOfPageGroup}">
<c:choose>
<c:when test="${pb.nowPage==page}">
<li class="active"><a href="ListController.do?pageNo=${page}">${page}</a></li>
</c:when>
<c:otherwise>
<li><a href="ListController.do?pageNo=${page}">${page}</a></li>
</c:otherwise>
</c:choose>
</c:forEach>
<c:if test="${pb.nextPageGroup}">
<li><a href="ListController.do?pageNo=${pb.endPageOfPageGroup+1}">»</a></li>
</c:if>
</ul>
</div>
반응형
'[IT] > JSP' 카테고리의 다른 글
JSTL.forEach.begin/end (0) | 2021.04.23 |
---|---|
JSTL.MAP (0) | 2021.04.23 |
JSTL.forEach (0) | 2021.04.23 |
JSTL.Choose (0) | 2021.04.23 |
JSTL.if (0) | 2021.04.23 |
JSTL.taglib (0) | 2021.04.23 |
EL.ServletContext (0) | 2021.04.23 |
EL.session (0) | 2021.04.23 |
Comments