📄 showuserlist.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.westaccp.jsp.company.dao.*" %>
<%@ page import="com.westaccp.jsp.company.dao.impl.*" %>
<%@ page import="com.westaccp.jsp.company.model.*" %>
<%
UserDao userDao = new UserDaoImpl();
List userList = userDao.findListUser();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>My JSP 'showUserList.jsp' starting page</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="css/common.css" />
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="4" id="tab">
<tr>
<td colspan="3" class="header">用户管理</td>
</tr>
<tr style="background-color: #EFEFEF;">
<th>用户名</th>
<th>身份代码</th>
<th>操作</th>
</tr>
<%
for(int i=0; i<userList.size(); i++) {
Users user = (Users) userList.get(i);
%>
<tr style="text-align: center;background-color: #FFFFFF" onmousemove="this.style.backgroundColor='#EFEFEF'" onmouseout="this.style.backgroundColor='#FFFFFF'">
<td><%=user.getUserName() %></td>
<td><%=user.getStatus() %></td>
<td><a onclick="return confirm('删除后无法恢复\n是否删除?')" href="../servlet/DeleteUserServlet?userId=<%=user.getUserId() %>">删除</a></td>
</tr>
<%} %>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -