📄 change.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.hanb.log.bean.Stu" %>
<html>
<head>
<title>
change
</title>
<%
Stu stu=new Stu();
stu=(Stu)request.getAttribute("stu");
String stuSex=stu.getStuSex();
String stuAge=stu.getStuAge();
%>
</head>
<body bgcolor="#ffffff">
<form method="post" action="logAction.do">
<input type="hidden" name="action" value="change" />
<input type="hidden" name="id" value="<%=stu.getId()%>" />
<br><br>
<center><h2><font color="blue">修改学生信息</font></h2></center>
<br><br>
<table width="300" align="center">
<tr>
<td>姓名</td>
<td><input type="text" name="stuName" value="<%=stu.getStuName()%>" /></td>
</tr>
<tr>
<td>年龄</td>
<td>
<select name="stuAge" style="width:150">
<option value="">===请选择===</option>
<option value="20" <%if(stuAge.equals("20")){%> selected="selected" <%}%>>20</option>
<option value="22" <%if(stuAge.equals("22")){%> selected="selected" <%}%>>22</option>
<option value="24" <%if(stuAge.equals("24")){%> selected="selected" <%}%>>24</option>
</select>
</td>
</tr>
<tr>
<td>性别</td>
<td>
<input type="radio" name="stuSex" value="男" <%if(stuSex.equals("男")){%>checked="checked"<%}%> />男
<input type="radio" name="stuSex" value="女" <%if(stuSex.equals("女")){%>checked="checked"<%}%> />女
</td>
</tr>
<tr>
<td>城市</td>
<td><input type="text" name="stuCity" value="<%=stu.getStuCity()%>" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="确定"/><input type="button" value="返回" onclick="history.back(-1)" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -