⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updateinformation.jsp

📁 本系统实现的是一个学生课程及成绩管理系统
💻 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>修改学生信息</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>
						确认密码
					</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">&lt;&lt;Back</a>
		</p>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -