修改个人信息界面:
<%@ page language="java" contentType="text/ html; charset=UTF-8"
pageEncoding="UTF-8" import = "java.util.*"%>
<%@page import="bean.teacher"%>
<%@page import="bean.tclass"%>
<%@page import="bean.student"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
student Astudent=(student)session.getAttribute("Astudent");
if(Astudent==null)
{
Astudent=(student)session.getAttribute("Astudent");
}
List<tclass> Atclass=(List<tclass>)session.getAttribute("Atclass");
List<tclass> Atclass1=(List<tclass>)session.getAttribute("Atclass1");
List<teacher> Ateacher=(List<teacher>)session.getAttribute("Ateacher");
out.println(Astudent.getName());
session.setAttribute("Astudent",Astudent);
request.setAttribute("Astudent",Astudent);
session.setAttribute("Atclass",Atclass);
request.setAttribute("Atclass",Atclass);
session.setAttribute("Atclass1",Atclass1);
request.setAttribute("Atclass1",Atclass1);
session.setAttribute("Ateacher",Ateacher);
request.setAttribute("Ateacher",Ateacher);
%>
<form action="Ssevlet?method=Schange" 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"><%=Astudent.getSunm()%></td>
</tr>
<tr>
<td align="right">姓名:</td>
<td><input type="text" value=<%=Astudent.getName()%> name="name"/></td>
</tr>
<tr>
<td align="right">性别:</td>
<td><input type="text" value=<%=Astudent.getSex()%> name="sex"/></td>
</tr>
<tr>
<td align="right">学院:</td>
<td><input type="text" value=<%=Astudent.getSclass()%> name="class"/></td>
</tr>
<tr>
<td align="right">职称:</td>
<td><input type="text" value=<%=Astudent.getMajor()%> name="major"/></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="loginS.jsp">返回上一级</a></tr>
<br>
</table>
</form>
</body>
</html>