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

📄 changecourseaction.java

📁 采用Eclispe开发平台
💻 JAVA
字号:
package com.whatratimes.webedu.teacher;

import org.apache.struts.action.*;

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

/**
 * User: Tao
 * Date: Jun 13, 2003
 * Time: 11:25:40 PM
 */
public class ChangeCourseAction extends Action
{
    public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception
    {
        HttpSession session = httpServletRequest.getSession();

        DynaActionForm form = (DynaActionForm) actionForm;

        Integer course_id = (Integer) form.get("CourseId");

        DynaActionForm examForm = (DynaActionForm) session.getAttribute("ExamDetailForm");
        examForm.set("CourseId", course_id);
        examForm.set("ExamId", new Integer(0));

        SetExamHelper.setExams(course_id, session);

        return actionMapping.findForward("success");
    }
}

⌨️ 快捷键说明

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