KhcpxzSelectOne.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
- 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 com.domain.KhcpxzForm;
- import org.apache.struts.action.Action;
- import com.service.KhcpxzFacade;
- import com.service.KhcpxzFacadeImpl;
- import com.service.KhxxFacade;
- import com.service.KhxxFacadeImpl;
- //单独查找
- public class KhcpxzSelectOne
- extends Action {
- private KhcpxzFacade khcpxzFacade = null;
- private KhxxFacade khxxFacade = null;
- public KhcpxzSelectOne() {
- this.khcpxzFacade = new KhcpxzFacadeImpl();
- this.khxxFacade = new KhxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- KhcpxzForm khcpxzForm = (KhcpxzForm) actionForm;
- servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
- khcpxzForm.setId(Integer.valueOf(servletRequest.getParameter("id")));
- servletRequest.setAttribute("Form",
- this.khcpxzFacade.cpxzSelectOne(khcpxzForm));
- if (servletRequest.getParameter("method") == null) {
- return actionMapping.findForward("khcpxzSelectContent");
- }
- else {
- return actionMapping.findForward("khcpxzSelectUpdate");
- }}
- }