• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

织梦吧 - dedecms,网站模板,建站教程,图片素材免费下载

当前位置: 织梦吧 > 编程与数据库 > Jsp编程 >

自定义数据分页示例(2)

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-06-28点击:

     </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,

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 tom@tiptop.cn ,  QQ