.#viewcustomcheckaction.java.1.2

来自「为交课程设计」· 2 代码 · 共 34 行

2
34
字号
package com.infodeliver.hr.person.action;

import com.infodeliver.hr.person.form.*;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.infodeliver.hr.person.PersonManager;
import com.infodeliver.hr.factory.AbstractFactory;

public class ViewCustomCheckAction extends Action {
  public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws
      Exception {
    /**@todo: complete the business logic here, this is just a skeleton.*/
    CheckActionForm checkActionForm = (CheckActionForm) actionForm;
    PersonManager pm = AbstractFactory.getInstance().getPersonManager();
    String person_id = "10001";
    String order_id ="1000002";
    if (httpServletRequest.getParameter("person_id")!=null)
    {
      person_id = httpServletRequest.getParameter("person_id");
    }
    if(httpServletRequest.getParameter("order_id")!=null)
    {
      order_id = httpServletRequest.getParameter("order_id");
    }

    checkActionForm=pm.viewCustomCheck(person_id,order_id);
    HttpSession session = httpServletRequest.getSession();
//    session.removeAttribute("customcheck");
    session.setAttribute("customcheck",checkActionForm);
    return actionMapping.findForward("success");
//    throw new java.lang.UnsupportedOperationException("Method perform() not yet implemented.");
  }
}

⌨️ 快捷键说明

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