jsp数字分页谁能给提供一个
来源:百度知道 编辑:UC知道 时间:2024/05/21 14:17:32
这个样子的jsp分页
1
package pageinfo;
import java.util.HashMap;
import java.util.ArrayList;
import java.sql.*;
public class Page {
public int currentpage;
public String parameter;
public int totalrows;
public int pagesize;
public int totalpages;
public String url;
public int getCurrentPage() {
return this.currentpage;
}
public void setCurrentPage(String Tcurrentpage) {
if (Tcurrentpage == null || Tcurrentpage == "") {
this.currentpage = 1;
} else {
this.currentpage = Integer.parseInt(Tcurrentpage);
}
}
public String getParameter() {
return this.parameter;
}
public void setParameter2(String parameter) {
this.parameter = parameter;
}
public int getTotalrows() {
return this.totalrows;
}
public void setTotalrows(int totalrows) {