KhtsCountIDContent.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientKhtsAction;
- import org.apache.struts.action.ActionMapping;
- import org.apache.struts.action.ActionForm;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.apache.struts.action.ActionForward;
- import org.apache.struts.action.Action;
- import com.service.KhtsFacade;
- import com.service.KhtsFacadeImpl;
- import com.service.KhxxFacade;
- import com.service.KhxxFacadeImpl;
- //唯一性
- public class KhtsCountIDContent
- extends Action {
- private KhtsFacade facade = null;
- private KhxxFacade khxxFacade = null;
- public KhtsCountIDContent() {
- this.facade = new KhtsFacadeImpl();
- this.khxxFacade = new KhxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- servletRequest.setAttribute("countID",String.valueOf(this.facade.countID()));
- servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
- return actionMapping.findForward("khtsCountIDContent");
- }
- }