paperresultaction.java

来自「采用Eclispe开发平台」· Java 代码 · 共 41 行

JAVA
41
字号
package com.whatratimes.webedu.student;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.Hashtable;

/**
 * User: Tao
 * Date: Jun 15, 2003
 * Time: 3:50:19 PM
 */
public class PaperResultAction extends Action
{
    public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception
    {

        HttpSession session = httpServletRequest.getSession();

        String submit_id = httpServletRequest.getParameter("SubmitId");

        Hashtable h = StudyHelper.setSubmitExam(Integer.valueOf(submit_id), session);

        if (h.get("QuestionType").equals(new Integer(1)))
        {

            return actionMapping.findForward("choice");
        } else
        {
            return actionMapping.findForward("others");

        }

    }
}

⌨️ 快捷键说明

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