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

企业管理

开发平台:

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 com.domain.KhtsForm;
  8. import org.apache.struts.action.Action;
  9. import com.service.KhtsFacadeImpl;
  10. import com.service.KhtsFacade;
  11. import com.service.KhxxFacade;
  12. import com.service.KhxxFacadeImpl;
  13. //查看投诉的具体信息
  14. public class KhtsSelectContent
  15.     extends Action {
  16.   private KhtsFacade facade = null;
  17.   private KhxxFacade khxxFacade = null;
  18.   public KhtsSelectContent() {
  19.     this.facade = new KhtsFacadeImpl();
  20.     this.khxxFacade = new KhxxFacadeImpl();
  21.   }
  22.   public ActionForward perform(ActionMapping actionMapping,
  23.                                ActionForm actionForm,
  24.                                HttpServletRequest servletRequest,
  25.                                HttpServletResponse servletResponse) {
  26.     KhtsForm khtsForm = (KhtsForm) actionForm;
  27.     khtsForm.setId(Integer.valueOf(servletRequest.getParameter("id")));
  28.     servletRequest.setAttribute("form", this.facade.SelectOne(khtsForm));
  29.     servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
  30.     if (servletRequest.getParameter("method") == null) {
  31.       return actionMapping.findForward("khtsSelectContent");
  32.     }
  33.     else if (servletRequest.getParameter("method").equals("2")){
  34.         return actionMapping.findForward("queryKhtsContent");
  35.     }
  36.         return actionMapping.findForward("khtsSelectOne");
  37.     }
  38.   }