⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usermanage.jsp

📁 一个很好的网上商城系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>userManage.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="../../photo/css.css">
	

  </head>
  
  <body>
  <jsp:include flush="true" page="head.jsp"></jsp:include>
  	
    <table width="70%" align="center">
    	<tr>
    		<td align="right"><a href="editUser.jsp">添加新用户</a></td>
    	</tr>
    </table>
    
    <table border="1" width="70%" align="center" cellspacing="0" cellpadding="10" bordercolor="#8000ff">
    	<tr>
    		<td colspan="6" align="center"><h3>用户管理</h3></td>
    	</tr>
    	<tr>
    		<th>用户名</th><th>密码</th><th>加入时间</th><th>用户类型</th>
    	</tr>

    	<logic:iterate id="user" name="usersList" property="smallRecordSet">
    	<tr>
    		<td><c:out value="${user.userName}"/></td>
    		<td><c:out value="${user.userPassword}"/></td>
    		<td><c:out value="${user.userDate}"/></td>
    		<td><c:out value="${user.userType}"/></td>    		
    		<td><a href="<c:url value="/userManage.do?method=findById&&userId=${user.userId}" />">修改</a></td>
    		<td><a href="<c:url value="/userManage.do?method=delete&&userId=${user.userId}" />">删除</a></td>    		
    	</tr>
    	</logic:iterate>
      	
    </table>
    <table width="70%" align="center">
    	<tr>
    		<td>
    				<html:link action="/userManage.do?method=pageFactory" >首页</html:link> 
			    <c:if test="${usersList.currentPageIndex!=1}">
			        <html:link action="/userManage.do?method=pageFactory" paramId="currentPageIndex" paramName="usersList" paramProperty="prePageIndex">上一页</html:link> 
			    </c:if>
				<c:if test="${usersList.currentPageIndex!=usersList.pageCount}">
			        <html:link action="/userManage.do?method=pageFactory" paramId="currentPageIndex" paramName="usersList" paramProperty="nextPageIndex">下一页</html:link>         	
				</c:if>
			        <html:link action="/userManage.do?method=pageFactory" paramId="currentPageIndex" paramName="usersList" paramProperty="pageCount">尾页</html:link>
			        <c:out value="第${usersList.currentPageIndex}页"></c:out>
			        <c:out value="共${usersList.pageCount}页"></c:out>
			        <c:out value="${usersList.recordCount}条记录"></c:out>	
    		</td>
    	</tr>
    </table>
    
    <c:if test="${requestScope.deleteInfo=='hasChild'}">
    			<script type="text/javascript">
					alert("此客户有订单存在,不能删除其资料!");
				</script>
    </c:if> 
    
  </body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -