struts2+spring+hibernate分页代码[比较多]第5/7页

 更新时间:2008年09月27日 15:27:36   作者:  
J2EE系统中分页显示,修改dao层,service层,action层,两个分页类文件,代码如下

分页辅助工具类:
Java代码
package com.last999.im.news.web;

public class PageTool{

private int cur=1;
private int size=6;
private int total=1;

public int getCur(){
return this.cur;
}
public void setCur(int cur) {
this.cur=cur;
}
public int getSize(){
return this.size;
}
public void setSize(int size) {
this.size=size;
}
public int getTotal(){
return this.total;
}
public void setTotal(int total) {
this.total=total;
}

public PageTool(){}

public PageTool(int cur,int size,int total){
this.cur=cur;
this.size=size;
this.total=total;
}

public PageTool(int size){
this.size=size;
this.cur=1;
this.total=1;
}
}

package com.last999.im.news.web;

public class PageTool{

private int cur=1;
private int size=6;
private int total=1;

public int getCur(){
return this.cur;
}
public void setCur(int cur) {
this.cur=cur;
}
public int getSize(){
return this.size;
}
public void setSize(int size) {
this.size=size;
}
public int getTotal(){
return this.total;
}
public void setTotal(int total) {
this.total=total;
}

public PageTool(){}

public PageTool(int cur,int size,int total){
this.cur=cur;
this.size=size;
this.total=total;
}

public PageTool(int size){
this.size=size;
this.cur=1;
this.total=1;
}
}

package com.last999.im.news.web;

public class PageTool{

private int cur=1;
private int size=6;
private int total=1;

public int getCur(){
return this.cur;
}
public void setCur(int cur) {
this.cur=cur;
}
public int getSize(){
return this.size;
}
public void setSize(int size) {
this.size=size;
}
public int getTotal(){
return this.total;
}
public void setTotal(int total) {
this.total=total;
}

public PageTool(){}

public PageTool(int cur,int size,int total){
this.cur=cur;
this.size=size;
this.total=total;
}

public PageTool(int size){
this.size=size;
this.cur=1;
this.total=1;
}
}

相关文章

最新评论