国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

java - Fields in Action cannot be read using struct2 tags
三叔
三叔 2017-06-12 09:25:08
0
1
927
分頁代碼
        private PageUntil pageuntil;
        @Resource
    private IAuthorAdminService iauthoradminservice;
    private AuthorAdmin authoradmin;
    private List<AuthorAdmin> listauthoradmin;



public String listAuthorAdmin() {
        pageuntil=new PageUntil();
        int currentPage = 0;
        int pagesize = pageuntil.getPagesize();
        currentPage =(currentPage == 0 ? 1 : currentPage);
        this.listauthoradmin = iauthoradminservice.queryPage(currentPage,
                pagesize);
        int countAuthorAdmin = iauthoradminservice.countAuthorAdmin();
        pageuntil
                .setPageCount(countAuthorAdmin % pagesize == 0 ? countAuthorAdmin
                        / pagesize
                        : countAuthorAdmin / pagesize + 1);

        return "listSuccess";

    }
分頁實體類
public class PageUntil {
    private int pageCount;//總頁數(shù)
    private int currentPage;//當(dāng)前頁
    private  int pagesize = 10;// 頁最多顯示多少條數(shù)據(jù)
    public int getPageCount() {
        return pageCount;
    }
    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }
    public int getCurrentPage() {
        return currentPage;
    }
    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }
    public int getPagesize() {
        return pagesize;
    }
    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    
jsp分頁片段
    <s:property value="pageuntil.pageCount" />
                頁</li>
                <li>當(dāng)前第<s:property value="pageuntil.currentPage" />頁</li>

If you don’t use a class to encapsulate the paging fields, it will work. I don’t know what’s wrong?

三叔
三叔

reply all(1)
左手右手慢動作

Just change it to another way of writing

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template