SkhfkForward.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
源码类别:

企业管理

开发平台:

Java

  1. package com.webtier.skhfkAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.KhxxFacade;
  5. import com.service.KhxxFacadeImpl;
  6. import com.service.CkhmydFacade;
  7. import com.service.CkhmydFacadeImpl;
  8. import com.service.SkhfkFacade;
  9. import com.service.SkhfkFacadeImpl;
  10. //通过次方法是需要的信息在下一个jsp页面中显示出来
  11. public class SkhfkForward
  12.     extends Action {
  13.   private KhxxFacade khxx = null;
  14.   private CkhmydFacade ckhmyd=null;
  15.   private SkhfkFacade skhfk=null;
  16.   public SkhfkForward() {
  17.     khxx = new KhxxFacadeImpl();
  18.     ckhmyd=new CkhmydFacadeImpl();
  19.     skhfk=new SkhfkFacadeImpl();
  20.   }
  21.   public ActionForward perform(ActionMapping actionMapping,
  22.                                ActionForm actionForm,
  23.                                HttpServletRequest httpServletRequest,
  24.                                HttpServletResponse httpServletResponse) {
  25.     httpServletRequest.setAttribute("khxxForm",this.khxx.khxxSelect());
  26.     httpServletRequest.setAttribute("ckhmydForm",this.ckhmyd.khmydSelect());
  27.     String changeType = String.valueOf(this.skhfk.skhfkCount());
  28.     httpServletRequest.setAttribute("changeType", changeType);
  29.     return actionMapping.findForward("skhfkForward");
  30.   }
  31. }