📄 modify.jsp
字号:
<html>
<%@ page language="java" import="java.util.*" %>
<%@ page import="java.lang.*" %>
<%@ page errorPage="error.jsp" %>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="com.entity.bean.Emp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<base href="<%=basePath%>">
<title>My JSP 'modify.jsp' starting page</title>
<link rel="stylesheet" href="m_style.css" type="text/css">
<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 bgcolor="#DADAE9">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableBorder">
<form>
<tr>
<td width="10%" height="22" class="forumrow">id</td>
<td width="25%" align="center">姓名 </td>
<td width="25%" align="center">密码 </td>
<td width="20%" align="center">权限类型</td>
<td width="20%" align="center">处理</td>
</tr>
<%
ResultSet rs= (ResultSet)request.getAttribute("rs");//做了强制转换
while(rs.next()){
%>
<tr>
<td height="22"><input type="text" name="num" value=<%=emp.getEid()%>></td>
<td height="22"><input type="text" name="name" value=<%=emp.getUsername()%>></td>
<td height="22"><input type="password" name="password" value=<%=emp.getPassword()%>></td>
<td height="22">
<select name="type" dataType="Require" msg="权限选择">
<option value="">请选择</option>
<option value="咨询助理">咨询助理</option>
<option value="咨询师">咨询师</option>
<option value="管理员">管理员</option>
<option value="经理">经理</option>
</select></td>
<td>
<input type="submit" value="确定">
<input type="reset" value="重置">
</td>
</tr>
<% }
rs.close();
%>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -