EL表达式,分页 ,集合遍历
来源:互联网 发布:网络办公 编辑:程序博客网 时间:2024/06/06 02:09
<span style="font-size:18px;"><strong> EL表达式,分页 ,集合遍历</strong></span>
<%@ page language="java" pageEncoding="utf-8" %><%@ include file="/WEB-INF/views/include/taglib.jsp"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"><HTML><head> <%@ include file="/WEB-INF/views/include/head.jsp" %> <%@ include file="/WEB-INF/views/include/jquery.jsp" %> <%@ include file="/WEB-INF/views/include/bootstrap.jsp" %> <%@ include file="/WEB-INF/views/include/picker.jsp" %> <link href="${ctx}/static/css/common.css" rel="stylesheet" type="text/css"/></head><body><div align="center" style="margin-top: 50px"> <p>我是主页 MyPage1111</p></div><div align="center"> <input type="text" name="search" id="search"></div><div><table border="1" align="center" bgcolor="#f0ffff" width="60%"> <tr> <td>用户id</td> <td>用户手机号</td> <td>用户密码</td> <td>用户地址</td> <td>用户头像</td> <td>删除</td> </tr><c:forEach items="${hospitalList}" var="hosipital"> <tr> <td>${hosipital.id}</td> <td>${hosipital.hospitalName}</td> <td>${hosipital.hospitalAddress}</td> <td>${hosipital.isApprove}</td> <td><img src="${hosipital.hospitalIcon}"/></td> <td> <a href="${ctx}/deleteUserById?userId=${hosipital.id}">修改</a></td> </tr></c:forEach><tr> <td> <a href="${ctx}/hospitallist?page=0&size=${requestScope.size}">首页</a> </td> <td> 当前页 ${requestScope.page} </td> <td> <c:choose> <c:when test="${requestScope.page<requestScope.totalPage-1}"> <a href="${ctx}/hospitallist?page=${requestScope.page+1}&size=${requestScope.size}">下一页${requestScope.page+1}</a> </c:when> <c:otherwise> 下一页 </c:otherwise> </c:choose> </td> <td> <c:choose> <c:when test="${requestScope.page>0}"> <a href="${ctx}/hospitallist?page=${requestScope.page-1}&size=${requestScope.size}">上一页${requestScope.page-1}</a> </c:when> <c:otherwise> 上一页 </c:otherwise> </c:choose> </td> <td> <a href="${ctx}/hospitallist?page=${requestScope.totalPage-1}&size=${requestScope.size}">尾页${requestScope.totalPage-1}</a> </td></tr></table></div></body></html>
1 0
- EL表达式,分页 ,集合遍历
- EL表达式,分页 ,集合遍历
- EL表达式遍历Map集合
- strust2 ognl或者el表达式遍历嵌套list集合
- JSP之EL表达式-集合之间的遍历匹配
- javascript中遍历EL表达式List集合中的值
- EL表达式遍历存了数组的集合
- EL表达式详情,遍历对象,集合和map例子
- EL表达式分页
- EL表达式遍历大小写
- el表达式 分页 Struts2后台
- jstl EL表达式遍历Map
- el表达式,取集合长度
- list集合存list 以及s标签在foreach循环遍历中用EL表达式取值
- el表达式:forEach list集合从第2(n)个对象开始循环遍历
- EL表达式,ognl表达式 集合过滤
- 第八章El表达式第五节el表达式集合操作
- el表达式 分页提交 中文乱码
- centos6.4安装jdk,jre简易教程
- 设计模式(12)------代理模式
- Spring boot-logback
- 设计模式(13)------责任链模式
- 设计模式(14)------命令模式
- EL表达式,分页 ,集合遍历
- 软件工程_实验1_流程控制语句_详细解答
- 配置云主机远程访问mysql数据库注意问题
- MongDB基础学习(六)—— 【MongoDB for Java】Java操作MongoDB
- 对Sql Server表字段进行修改
- Codeforces-719B-Anatoly and Cockroaches
- 跟着鬼哥学爬虫-4-根据需求爬工作需要内容
- WPF DevExpress 更换主题
- 设计模式(15)------解释器模式