📄 selectuser.jsp
字号:
<%@ page language="java" import="java.util.*,com.Bean.*" pageEncoding="GB18030"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'selectUser.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="styles.css">
-->
</head>
<body back>
<div align="center"><br><h3><font color="#004080">用户操作
</font></h3>
<p>
<br>
</p>
<table width="404" border="1" height="60">
<tbody>
<tr>
<td><font color="#400080">
编号
</font></td>
<td><font color="#400080">
用户名
</font></td>
<td><font color="#400080">
密码
</font></td>
<td><font color="#400080">
性别
</font></td>
<td><font color="#400080">
权限
</font></td>
<td><font color="#400080">
删除
</font></td>
<td><font color="#400080">
更新
<br></font>
</td>
</tr>
<%
UserInfo user=null;
ArrayList arr=(ArrayList)request.getAttribute("arr");
for(int i=0;i<arr.size();i++)
{
user=(UserInfo)arr.get(i);
%>
<form method="post" name="form1" style="" action="updateUser">
<tr>
<td>
<%=user.getId() %>
<input type="hidden" value="<%=user.getId() %>" name="id">
</td>
<td> <input type="text" name="userName" value="<%=user.getUserName() %>"> </td>
<td>
<input type="text" name="userPassword" value="<%=user.getUserPassword() %>">
</td>
<td>
<input type="text" name="userSex" value="<%=user.getUserSex() %>">
</td>
<td>
<input type="text" name="quanxianID" value="<%=user.getQuanxianID() %>">
</td>
<td>
<a onclick="return confirm('你确定要删除此用户吗?');" href='delete?id=<%=user.getId() %>'>删除</a>
</td>
<td>
<input type="submit" value="更新" name="button1">
</td>
</tr>
</form>
<%
}
%>
</tbody>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -