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

企业管理

开发平台:

Java

  1. package com.webtier.clientKhtsAction;
  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.KhtsFacade;
  9. import com.service.KhtsFacadeImpl;
  10. import com.service.KhxxFacade;
  11. import com.service.KhxxFacadeImpl;
  12. //唯一性
  13. public class KhtsCountIDContent
  14.     extends Action {
  15.   private KhtsFacade facade = null;
  16.    private KhxxFacade khxxFacade = null;
  17.    public KhtsCountIDContent() {
  18.      this.facade = new KhtsFacadeImpl();
  19.      this.khxxFacade = new KhxxFacadeImpl();
  20.   }
  21.   public ActionForward perform(ActionMapping actionMapping,
  22.                                ActionForm actionForm,
  23.                                HttpServletRequest servletRequest,
  24.                                HttpServletResponse servletResponse) {
  25.  servletRequest.setAttribute("countID",String.valueOf(this.facade.countID()));
  26.    servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
  27.     return actionMapping.findForward("khtsCountIDContent");
  28.   }
  29. }