.#initupdateinnercheckaction.java.1.1

来自「为交课程设计」· 1 代码 · 共 37 行

1
37
字号
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 InitUpdateInnerCheckAction 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");
    httpServletRequest.setAttribute("order_id",order_id);
  }

    checkActionForm=pm.viewInnerCheck(person_id,order_id);
    HttpSession session = httpServletRequest.getSession();
//    session.removeAttribute("customcheck");
//    session.removeAttribute("innercheck");
    session.setAttribute("innercheck",checkActionForm);
    return actionMapping.findForward("success");

//    throw new java.lang.UnsupportedOperationException("Method perform() not yet implemented.");
  }
}

⌨️ 快捷键说明

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