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

企业管理

开发平台:

Java

  1. package com.webtier.queryInformation;
  2. import org.apache.struts.action.ActionMapping;
  3. import org.apache.struts.action.ActionForm;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import org.apache.struts.action.ActionForward;
  7. import org.apache.struts.action.Action;
  8. import com.service.SfzyFacade;
  9. import com.service.SfzyFacadeImpl;
  10. import java.io.UnsupportedEncodingException;
  11. public class PrinfSfzySelect
  12.     extends Action {
  13.   private SfzyFacade facade;
  14.   public PrinfSfzySelect() {
  15.     this.facade = new SfzyFacadeImpl();
  16.   }
  17.   public ActionForward perform(ActionMapping actionMapping,
  18.                                ActionForm actionForm,
  19.                                HttpServletRequest httpServletRequest,
  20.                                HttpServletResponse httpServletResponse) throws
  21.       UnsupportedEncodingException {
  22.     httpServletRequest.setCharacterEncoding("gb2312");
  23.     Integer iCount = Integer.valueOf("1");
  24.     httpServletRequest.setAttribute("iCount", String.valueOf(iCount));
  25.     httpServletRequest.setAttribute("total", String.valueOf(this.facade.toatl()));
  26.     httpServletRequest.setAttribute("sfzylist", this.facade.sfzySelect());
  27.     return actionMapping.findForward("prinfSfzySelect");
  28.   }
  29. }