详细说明:
(1) 选修科目: <%@page language="java" contentType="text ml; charset=GBK"%> <%@page import="java.sql.*,com.stuman.service.*"%> 选报课程 <% String stuid = (String)session.getAttribute("stuid"); %> 您可以选报的课程为
课程号 | 课程名 预修课 | 系别 | 班级号 | 教室号 | 上课时间 | 教师 | 选择 |
<% ListCourseForStu courlist = new ListCourseForStu(); courlist.list(request, out, stuid); %>
<
(2) 学生选择项页面 <%@page language="java" contentType="text ml; charset=utf-8"%> <%@page import="java.sql.*,com.stuman.*" errorPage="errorpage.jsp" %> <% String stuid = (String)session.getAttribute("stuid"); if(stuid==null){response.sendRedirect("login.jsp");} %>
您已经成功通过验证! 您可以使用如下服务 <<注销
< 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"%>
修改学生信息 <% 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(); %>
修改信息