学生管理系统,学生信息修改界面:
<%@ page language="java" contentType="text/ html; charset=UTF-8"
pageEncoding="UTF-8" import = "java.util.*"%>
<%@page import="bean.student"%>
<%@page import="bean.tclass"%>
<%@page import="bean.teacher"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8d">
<title>Insert title here</title>
</head>
<body>
<%
teacher Ateacher=(teacher)request.getAttribute("Ateacher");
if(Ateacher==null)
{
Ateacher=(teacher)session.getAttribute("Ateacher");
}
List<tclass> Atclass=(List<tclass>)request.getAttribute("Atclass");
List<student> Astudent=(List<student>)request.getAttribute("Astudent");
out.println(Ateacher.getName());
session.setAttribute("Ateacher",Ateacher);
request.setAttribute("Ateacher",Ateacher);
session.setAttribute("Atclass",Atclass);
request.setAttribute("Atclass",Atclass);
session.setAttribute("Astudent",Astudent);
request.setAttribute("Astudent",Astudent);
%>
<form action="Tsevlet?method=Tchange" method="post" onsubmit="return chech(this)">
<table align="center" width="450">
<tr>
<td align="center" >
<h2>修改个人信息</h2>
<hr>
</td>
</tr>
<tr>
<td align="right">工号:</td>
<td align="right"><%=Ateacher.getTunm()%></td>
</tr>
<tr>
<td align="right">姓名:</td>
<td><input type="text" value=<%=Ateacher.getName()%> name="name"/></td>
</tr>
<tr>
<td align="right">性别:</td>
<td><input type="text" value=<%=Ateacher.getSex()%> name="sex"/></td>
</tr>
<tr>
<td align="right">学院:</td>
<td><input type="text" value=<%=Ateacher.getSchool()%> name="school"/></td>
</tr>
<tr>
<td align="right">职称:</td>
<td><input type="text" value=<%=Ateacher.getJob()%> name="job"/></td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" value="确认">
</td>
</tr>
<tr align="center"><a href="user.jsp">注销</a></tr>
<br>
<tr align="center"><a href="loginT.jsp">返回上一级</a></tr>
<br>
</table>
</form>
</body>
</html>