?? enterpracticepaperaction.java
字號:
package com.whatratimes.webedu.student;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import org.apache.struts.validator.DynaValidatorActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* User: Tao
* Date: Jun 17, 2003
* Time: 2:21:48 AM
*/
public class EnterPracticePaperAction extends Action
{
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception
{
HttpSession session = httpServletRequest.getSession();
int total = ((Object[])session.getAttribute("Questions")).length;
Integer submit_id = (Integer) session.getAttribute("SubmitId");
DynaValidatorActionForm form = (DynaValidatorActionForm) actionForm;
form.initialize(actionMapping);
form.set("SubmitId", submit_id);
form.set("Total", new Integer(total));
return actionMapping.findForward("success");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -