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的樣子啊,我自己都有點作嘔了!呵呵。