JSP-MVC model2(13)
-
Jsp_MVC2 - BoardFrontController
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 12..
2020.08.17 -
Jsp-MVC2-PageInfo
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 package vo; public class PageInfo { private int page; private int maxPage; private int startPage; private int endPage; private int listCount; public PageInfo(int page, int maxPage, int startPage, int endPage, int listCount) { super(); this.page = page; this..
2020.08.10 -
Jsp-MVC2-ListSerivice
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 package svc; import java.sql.Connection; import java.util.ArrayList; import dao.BoardDAO; import vo.BoardDTO; import static db.JdbcUtil.*; public class BoardListService { // 게시판 전체 목록 갯수 가져오는 메서드 정의 public int selectListCount() { int listCount=0; Connect..
2020.08.10 -
Jsp-MVC2- ListAction, paging(페이징)
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 package action; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import svc.BoardListS..
2020.08.10 -
Jsp-MVC2- ProService
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 package svc; import java.sql.Connection; import dao.BoardDAO; import vo.BoardDTO; //JdbcUtil 클래스의 static 메서드들을 클래스명 없이 이름 만으로 호출하기 위해 //static import 기능을 사용하여 메서드들을 현재 클래스에 포함 시킬 수 있다. // import static 패키지명.클래..
2020.08.10 -
Jsp-MVC2-WriteProAction
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 91 92 93 94 95 96 97 98 99 100 101 102 103 package action; import java.io.PrintWriter; import javax.servlet.ServletContext; import javax...
2020.08.10