Jsp-MVC2-PageInfo
2020. 8. 10. 20:36ㆍJSP-MVC model2
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.maxPage = maxPage;
this.startPage = startPage;
this.endPage = endPage;
this.listCount = listCount;
}
public int getPage() {
return page;
}
public void setPage(int page) {
this.page = page;
}
public int getMaxPage() {
return maxPage;
}
public void setMaxPage(int maxPage) {
this.maxPage = maxPage;
}
public int getStartPage() {
return startPage;
}
public void setStartPage(int startPage) {
this.startPage = startPage;
}
public int getEndPage() {
return endPage;
}
public void setEndPage(int endPage) {
this.endPage = endPage;
}
public int getListCount() {
return listCount;
}
public void setListCount(int listCount) {
this.listCount = listCount;
}
}
|
cs |
페이징을 활용하기 위한 DTO와 같은 개념으로 저장과 반환을 위한 변수를 선언해주고 Getter/Setter를 선언해주고 끝이 나는 페이지이다. DTO와 같다고 생각하면 된다.
'JSP-MVC model2' 카테고리의 다른 글
Jsp_MVC2 - BoardFrontController (0) | 2020.08.17 |
---|---|
Jsp-MVC2-ListSerivice (0) | 2020.08.10 |
Jsp-MVC2- ListAction, paging(페이징) (0) | 2020.08.10 |
Jsp-MVC2- ProService (0) | 2020.08.10 |
Jsp-MVC2-WriteProAction (0) | 2020.08.10 |