zoukankan      html  css  js  c++  java
  • 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>
    

      

  • 相关阅读:
    获取随机数
    性能测试工具
    Oracle 级联删除
    一些shell用法
    英文
    主题:【元宵赏灯】蛇年杭州元宵赏灯攻略(上城区、滨江区、下城区)
    CListCtrl 列表选中项非焦点时也是藍色
    ASCII码表
    杭州市公积金提取及相关知识
    ListBox设置水平滚动条
  • 原文地址:https://www.cnblogs.com/sunrunzhi/p/10118945.html
Copyright © 2011-2022 走看看