KhcpxzID.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.KhcpxzAction;
- 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.KhxxFacade;
- import com.service.KhcpxzFacade;
- import com.service.KhcpxzFacadeImpl;
- import com.service.KhxxFacadeImpl;
- public class KhcpxzID
- extends Action {
- private KhcpxzFacade khcpxzFacade = null;
- private KhxxFacade khxxFacade = null;
- public KhcpxzID() {
- this.khcpxzFacade = new KhcpxzFacadeImpl();
- this.khxxFacade = new KhxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
- String countID = String.valueOf(this.khcpxzFacade.countID());
- if (countID == null) {
- countID = "1";
- }
- servletRequest.setAttribute("countID", countID);
- return actionMapping.findForward("khcpxzID");
- }
- }