?? updatetea.jsp
字號:
<%@page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.sql.*,com.stuman.domain.Teacher,com.stuman.dao.TeacherDAO,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>編輯教師信息</title>
</head>
<body>
<%
String tea_id = request.getParameter("Teacher_id");
System.out.println("Student_id = " + tea_id);
String name = "", id = "", password = "", title = "";
TeacherDAO teaDao = DAOFactory.getInstance().createTeacherDAO();
Teacher tea = teaDao.getTeacherByID(tea_id);
name = tea.getName();
password = tea.getPassword();
title = tea.getTitle();
%>
<p align="center">
更新教師
</p>
<form method="post" action="/MyStuMan/editTeacher.do?Teacher_id=<%=tea_id%>">
<table width="51%" border="1" align="center">
<tr>
<td width="33%">
教師姓名
</td>
<td width="67%">
<html:text property="name" value="<%=name%>" />
</td>
</tr>
<tr>
<td>
密碼
</td>
<td>
<html:password property="password" value="<%=password%>" />
</td>
</tr>
<tr>
<td>
職稱
</td>
<td>
<html:select property="title" size="1" value="教授">
<html:option key="a" value="教授">教授</html:option>
<html:option key="b" value="教授">副教授</html:option>
</html:select>
</td>
</tr>
</table>
<p align="center">
<input type="submit" name="Submit" value="提交">
</p>
</form>
<p>
</p>
<p>
<a href="getteacher.jsp"><<后退</a>
</p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -