?? updateinformation.jsp
字號:
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<%@ page import="java.sql.*,com.stuman.domain.Student,com.stuman.dao.StudentDAO,com.stuman.dao.DAOFactory"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html>
<head>
<title>修改學(xué)生信息</title>
</head>
<body>
<p>
<%
String stu_id = (String)session.getAttribute("stuid");
System.out.println("Student_id = " + stu_id);
String tel = "", id = "", password = "", email = "", dep = "", sex = "", mail = "", mark = "";
StudentDAO stuDao = DAOFactory.getInstance().createStudentDAO();
Student stu = stuDao.getStudentByID(stu_id);
password = stu.getPassword();
tel = stu.getTel();
email = stu.getEmail();
%>
</p>
<p align="center">
修改信息
</p>
<form method="post" action="/MyStuMan/editStudent2.do?student_id=<%=stu_id%>">
<table width="49%" height="50" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
密碼
</td>
<td>
<html:password property="password" value="<%=password%>" />
</td>
</tr>
<tr>
<td>
確認(rèn)密碼
</td>
<td>
<html:password property="password1" value="<%=password%>" />
</td>
</tr>
<tr>
<td>
電話
</td>
<td>
<html:text property="tel" value="<%=tel%>" />
</td>
</tr>
<tr>
<td>
郵件地址
</td>
<td>
<html:password property="email" value="<%=email%>" />
</td>
</tr>
</table>
<p align="center">
<input type="submit" name="Submit" value="提交">
</p>
</form>
<p>
<a href="getStudent.jsp"><<Back</a>
</p>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -