Java高级架构师(一)第14节:新增和列表页面和分页tag

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="${pageContext.request.contextPath}/static/css/application.css" rel="stylesheet">
<script src="${pageContext.request.contextPath}/static/js/application.js"></script>
<script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.js"></script>
</head>
<body>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="myTag" tagdir="/WEB-INF/tags" %>


<table  width="100%" border="1" cellpadding="0" cellspacing="1" class="tableLine DoubleColorTable" >
	
	<tr>
		<td colspan="6">
			<a href="${pageContext.request.contextPath}/customer/toQuery">转到查询</a>
			  
			<a href="${pageContext.request.contextPath}/customer/toAdd">转到新增</a>
		</td>
	</tr>
	<tr>
		<td colspan="6" align="center" class="tableLineBg">
			客户列表
		</td>
	</tr>
	<tr>
		<td>客户编号</td>
		<td>显示名称</td>
		<td>真实姓名</td>
		<td>客户密码</td>
		<td>注册时间</td>
		<td>操作</td>
	</tr>
	<c:forEach var="m" items="${page.result}">	
	<tr>
		<td>${m.customerId}</td>
		<td>${m.showName}</td>
		<td>${m.trueName}</td>
		<td>${m.pwd}</td>
		<td>${m.registerTime}</td>
		<td>
			<a href="${pageContext.request.contextPath}/customer/toUpdate/${m.uuid}">修改</a> |
			<a href="${pageContext.request.contextPath}/customer/toDelete/${m.uuid}">删除</a>
		</td>
	</tr>
	</c:forEach>
	<tr>
		<td colspan="6" align="center">
			<input type="hidden" id="queryJsonStr" value='${wm.queryJsonStr}'/>
			<myTag:page page="${page}"></myTag:page>
		</td>
	</tr>
</table>

</body>
</html>

  

posted @ 2018-12-14 13:37  Mars、少年  阅读(135)  评论(0编辑  收藏  举报