⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reattandexamaction.java

📁 jsp做的一个在线考试,不错的哈.可以看看,这个我测试通过了的.
💻 JAVA
字号:
package org.mmxbb.exam.business.program;import org.apache.struts.action.*;import org.mmxbb.exam.bean.ExaminationPaper;import org.mmxbb.exam.dao.ExaminationPaperDAO;import org.mmxbb.exam.dao.TestPaperDAO;import javax.servlet.http.*;public class ReAttandExamAction extends Action {  public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {    String t_idStr = httpServletRequest.getParameter("t_id");    String e_idStr = httpServletRequest.getParameter("e_id");    String t_state = "096";    String t_begin = "";    String t_end = "";    //update testpaper    TestPaperDAO testPaperDAO = null;    testPaperDAO = new TestPaperDAO();    testPaperDAO.updateT_state(java.lang.Long.parseLong(t_idStr),t_state,t_begin,t_end);    /*ExaminationPaperDAO eDao = null;    ExaminationPaper examinationPaper = new ExaminationPaper();    try {      eDao = new ExaminationPaperDAO();      examinationPaper = eDao.findBykey(java.lang.Long.parseLong(e_idStr));    } catch (Exception ex) {      ex.printStackTrace();    }    httpServletRequest.setAttribute("exam",examinationPaper);*/    httpServletRequest.setAttribute("E_ID",e_idStr);    String page = "1";    httpServletRequest.setAttribute("page",page);    return actionMapping.findForward("controlaction");  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -