In the last page of the Freemarker--FTL file we discussed the logic of paging, and in this article we started to look at how the FTL is transmitted
Perhaps you have found the clue in the last article, yes, well, we need a class
Package Com.yunlu.leagueofitlovers.system.util;public class Pageutil {private int datacount;private int currentpage; private int pagecount;private int pagesize;private String pageurl;public pageutil () {super ();} Public pageutil (int datacount, int currentpage, int pagecount,int pageSize, String pageurl) {super (); this.datacount = data Count;this.currentpage = Currentpage;this.pagecount = Pagecount;this.pagesize = Pagesize;this.pageurl = PageUrl;} public int Getdatacount () {return datacount;} public void Setdatacount (int datacount) {this.datacount = Datacount;} public int getcurrentpage () {return currentpage;} public void setcurrentpage (int currentpage) {this.currentpage = currentpage;} public int Getpagecount () {return pagecount;} public void Setpagecount (int pagecount) {this.pagecount = PageCount;} public int getpagesize () {return pageSize;} public void setpagesize (int pageSize) {this.pagesize = pageSize;} Public String Getpageurl () {return pageurl;} public void Setpageurl (String pageurl) {this.pageURL = Pageurl;}}
In the class, the first member variable is the total number of data, is not used temporarily, the second is the current page, the third is the total number of pages, the fourth is the size of the amount of data per page, the fifth is a page prefix name, such as ***_page, which is mainly used when paging click
These are all done, so you can assign calls to each class where you need to page them.
The above content is original, if you need to reprint please indicate the source, thank you!!!
Freemarker of paging--FTL file in the