</tr>
</c:forEach>
</tbody>
</table>
</div>
<div id="a">
<a href="${pageContext.request.contextPath}/data?pages=1">首页</a>
<a href="${pageContext.request.contextPath}/data?pages=${pages-1<=1?1:pages-1}">上一页</a>
<a href="${pageContext.request.contextPath}/data?pages=${pages+1>sumpages?sumpages:pages+1}">下一页</a>
<a href="${pageContext.request.contextPath}/data?pages=${sumpages}">末页</a>共${sum}条
</div>
</body>
</html>
Java类:
domain层:Customer类
package cn.csdn.customer.domain;
import java.io.Serializable;
import java.sql.Date;
public class Customer implements Serializable{
private static final long serialVersionUID = 1L;
/*编号*/
private int id;
/*客户姓名*/
private String name;
/*性名*/
private String gender;
/*生日*/
private Date birthday;
/*手机*/
private String cellphone;
/*电子邮箱*/
private String Email;
/*客户爱好*/
private String perference;
/*客户类型*/
private String type;
/*备注*/
private String Description;
/*默认构造器*/
public Customer() {
super();
}
/*有参构造器*/
public Customer(String name, String gender, Date birthday,
String cellphone, String email, String perference, String type,