queryexaminformationbytermaction.java
来自「学生信息管理系统」· Java 代码 · 共 25 行
JAVA
25 行
package action;
import java.io.*;
import java.util.*;
import vo.ExamVO;
import dao.ExamDAO;
import javax.servlet.*;
import javax.servlet.http.*;
public class QueryExamInformationByTermAction extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException
{
String term=request.getParameter("term");
ExamDAO examdao=new ExamDAO();
ArrayList exams=(ArrayList)examdao.getExamInforsByTerm(term);
HttpSession session=request.getSession(true);
session.setAttribute("term",exams);
this.getServletContext().getRequestDispatcher("/QueryExamInformationByTermResult.jsp").forward(request,response);
}
public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException
{
doGet(request,response);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?