티스토리 뷰
오늘은 검색기능,,
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/WEB-INF/views/include/header.jsp" %> <%@ page session="false" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script> var result='${msg}'; if(result == 'SUCCESS'){ alert("처리가 완료되었습니다."); } </script> </head> <body> <div class='box-body'> <select name ="searchType"> <option value="n" <c:out vlaue="${cri.searchType == null?'selected':' '}"/>> ---</option> <option value="t" <c:out vlaue="${cri.searchType eq 't'?'selected':' '}"/>> Title</option> <option value="c" <c:out vlaue="${cri.searchType eq 'c'?'selected':' '}"/>> Content</option> <option value="w" <c:out vlaue="${cri.searchType eq 'w'?'selected':' '}"/>> Writer</option> <option value="tc" <c:out vlaue="${cri.searchType eq 'tc'?'selected':' '}"/>> Title or Content</option> <option value="cw" <c:out vlaue="${cri.searchType eq 'cw'?'selected':' '}"/>> Content or Writer</option> <option value="tcw" <c:out vlaue="${cri.searchType eq 'tcw'?'selected':' '}"/>> Title or Content or Writer</option> </select> <input type ="text" name = 'keyword' id="keywordInput" value='${cri.keyword }'> <button id='searchBtn'>Search</button> <button id='newBtn'>New Board</button> </div> <table class="table table-bordered"> <tr> <th style="width: 10px">BNO</th> <th>TITLE</th> <th>WRITER</th> <th>REGDATE</th> <th style="width: 40px">VIEWCNT</th> </tr> <c:forEach items="${list}" var="boardVO"> <tr> <td>${boardVO.bno}</td> <td><a href='/board/readPage${pageMaker.makeQuery(pageMaker.cri.page)}&bno=${boardVO.bno }'>${boardVO.title }</a></td> <td>${boardVO.writer}</td> <td><fmt:formatDate pattern="yyyy-MM-dd HH:mm" value="${boardVO.regdate}"/></td> <td><span class="badge bg-red">${boardVO.viewcnt}</span></td> </tr> </c:forEach> </table> <div class="text-center"> <ul class="pagination"> <c:if test="${pageMaker.prev }"> <li><a href="list${pageMaker.makeQuery(pageMaker.startPage -1) }">«</a></li> </c:if> <c:forEach begin="${pageMaker.startPage }" end="${pageMaker.endPage }" var="idx"> <li <c:out value="${pageMaker.cri.page == idx?'class = active':'' }"/>> <a href="list${pageMaker.makeQuery(idx) }">${idx }</a> </li> </c:forEach> <c:if test="${pageMaker.next && pageMaker.endPage>0 }"> <li><a href="list${pageMaker.makeQuery(pageMaker.endPage +1) }">»</a> </li> </c:if> </ul> </div> </body> </html> | cs |
이상태에서 아직은 화면이 뜨지 않는다..
'SPRING' 카테고리의 다른 글
1030 spring 한글깨짐문제 해결 (0) | 2018.10.31 |
---|---|
180807 개발일기 (0) | 2018.08.07 |
0804 개발일기 페이징 마무리 (0) | 2018.08.04 |
0803 개발일기 페이징 Criteria (0) | 2018.08.04 |
0731 개발일기 익셉션 페이징 (0) | 2018.07.31 |
댓글