首页>代码>jsp+servlet+jdbc开发学生信息后台管理系统>/学生管理系统/Student/src/cla2sub/servlet/PlanAddCla2SubSevlet.java
package cla2sub.servlet;

import impl.ClassesImpl;
import impl.TeacherImpl;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import entity.Classes;
import entity.Teacher;

public class PlanAddCla2SubSevlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		this.doPost(req, resp);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		// TODO Auto-generated method stub
		// 添加班级课程前查询可选班级
		TeacherImpl teacherImpl = new TeacherImpl();
		ClassesImpl classesImpl = new ClassesImpl();
		List<Teacher> list_teacher;
		List<Classes> list_classes;
		HttpSession session = request.getSession();
		list_classes = classesImpl.query("all", "all");
		list_teacher = teacherImpl.query("all", "all");
		session.setAttribute("list_teacher", list_teacher);
		session.setAttribute("list_classes", list_classes);
		response.sendRedirect("pages/add_classes_subject.jsp");

	}
}
最近下载更多
asddwh  LV12 2023年12月29日
微信网友_6797029372219392  LV2 2023年12月28日
ddzfgh  LV1 2023年12月25日
微信网友_6786215447367680  LV4 2023年12月23日
陈煌锐  LV1 2023年12月14日
hongdongdong  LV12 2023年6月27日
不想打代码的小林111  LV1 2023年6月14日
abcdef_wtx  LV1 2023年6月8日
www111111111  LV2 2023年5月23日
最近浏览更多
Nuyoah_L 1月3日
暂无贡献等级
微信网友_6797029372219392  LV2 2023年12月28日
smysmy 2023年12月28日
暂无贡献等级
lx123456000  LV3 2023年12月27日
磊哥哥哥哥  LV13 2023年12月26日
asddwh  LV12 2023年12月26日
ddzfgh  LV1 2023年12月25日
微信网友_6786215447367680  LV4 2023年12月20日
ziv5466123  LV7 2023年12月15日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友