📄 queryexaminformationbytermaction.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -