toupdate.jsp
来自「ssh整合在一起的例子.适合初学者,希望对大家能有一定的帮助作用」· JSP 代码 · 共 42 行
JSP
42 行
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View Title</title>
</head>
<%
String context = request.getContextPath();
%>
<body>
<br/>
<br/>
<form action="<%=context%>/user.do" method="post">
<input type="hidden" name="mhd" value="doUpdate"/>
<input type="hidden" name="password" value="${user.password}"/>
<table width="31%" height="154" border="0" align="center">
<tr>
<td colspan="2"> <div align="center">
<h2>员工信息详细</h2>
</div></td>
</tr>
<tr>
<td width="29%"><div align="right">编号:</div></td>
<td width="71%"><input type="text" name="id" value="${user.id}" readonly="true"/></td>
</tr>
<tr>
<td><div align="right">用户名:</div></td>
<td><input type="text" name="username" value="${user.username}"/></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="Submit" name="update" value="Update" >
</label></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?