(1) 选修科目:
<%@page language="java" contentType="text ml; charset=GBK"%>
<%@page import="java.sql.*,com.stuman.service.*"%>
<html>
<head>
<title>选报课程</title>
</head>
<%
String stuid = (String)session.getAttribute("stuid");
%>
<body>
<p align="center">
您可以选报的课程为
</p>
<table border="1" align="center">
<tr>
<td width="54">
课程号
</td>
<td width="54">
课程名
</td>
<td width="57">
预修课
</td>
<td width="58">
系别
</td>
<td width="59">
班级号
</td>
<td width="69">
教室号
</td>
<td width="88">
上课时间
</td>
<td width="88">
教师
</td>
<td width="83">
选择
</td>
</tr>
<%
ListCourseForStu courlist = new ListCourseForStu();
courlist.list(request, out, stuid);
%>
</table>
<p>
</p>
<p>
<a href="student.jsp"><<Back </a>
</p>
</body>
</html>
(2) 学生选择项页面
<%@page language="java" contentType="text ml; charset=utf-8"%>
<%@page import="java.sql.*,com.stuman.*" errorPage="errorpage.jsp" %>
<html>
<head>
</head>
<body>
<%
String stuid = (String)session.getAttribute("stuid");
if(stuid==null){response.sendRedirect("login.jsp");}
%>
<br>
<br>
<center>您已经成功通过验证! 您可以使用如下服务</center>
<br>
<br>
<br>
<table width="58%" border="0" align="center">
<tr>
<td><a href="DisplayCourse.jsp">选修课程 >></a></td>
<td><a href="checkmark.jsp">察看成绩 >></a></td>
<td><a href="updateinformation.jsp">更改信息 >></a></td>
</tr>
</table>
<p> <a href="login_confirm?action=logout"><<注销 </a></p>
</body>
< html>
(3) 修改项学生页面
<%@ page language="java" contentType="text ml; 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>