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

企业管理

开发平台:

Java

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