Freemarker of paging--FTL file in the

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.