exam-master/src/org/mmxbb/exam/business/program/ReAttandExamAction.java
(完整代码) 1KBpackage 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");
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。