4.memlist.jsp
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ include file="/common/jsp/taglib.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link href="/css/manage.css" media="screen" rel="stylesheet" type="text/css" /> <script src="/js/jquery-1.7.2.js" type="text/javascript" ></script> <title>XX平台</title> </head> <body> <div class="manage_container"> <div class="manage_head"> <div id="nav"> <ul> <li><a href="${ctx}/"><b>首页</b></a></li> <li><a href="${ctx}/mem"><b>会员列表</b></a></li> </ul> </div> </div> <div class="main"> <h1>会员列表 </h1> <div class="table_box"> <table class="list"> <tbody> <tr> <th width="4%">id</th> <th width="35%">地址</th> <th width="12%">真实姓名</th> </tr> <c:forEach items="${memPage.list}" var="mem"> <tr> <td style="text-align:center;"><c:out value="${mem.uid}" default=""/></td> <td style="text-align:center;">${mem.address}</td> <td style="text-align:center;">${mem.realname}</td> </tr> </c:forEach> </tbody> </table> <c:set var="currentPage" value="${memPage.pageNumber}" /> <c:set var="totalPage" value="${memPage.totalPage}" /> <c:set var="actionUrl" value="/mem/" /> <c:set var="urlParas" value="" /> <%@ include file="/common/jsp/_paginate.jsp"%> </div> </div> </div> </body> </html>
这个里面就比较简单了,一看就能明白!
项目演示
结语:本人小试牛刀,如果有不正确的地方请指正,如果有什么建议,请留言,对于你的帮助,我会感到万分荣幸!感觉这段话,好装13的样子啊,我自己都有点作呕了!呵呵。