private Integer currPage = 1; public void setCurrPage(Integer currPage) { this.currPage = currPage; } public String findAll() { //PageBean里的list屬性作為員工顯示頁面里iterator的value屬性的值 PageBean<Employee> pageBean = employeeService.findByPage(currPage); ActionContext.getContext().getValueStack().push(pageBean); return "findAll"; }這是action類里分頁的方法,在頁面上點擊顯示所有用戶的時候就會跳過來執行這個方法。為什么要在這里設置當前頁碼和
setter方法呢(對應1-5行代碼)?
添加回答
舉報
0/150
提交
取消