KhtsSelectContent.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
- 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 com.domain.KhtsForm;
- import org.apache.struts.action.Action;
- import com.service.KhtsFacadeImpl;
- import com.service.KhtsFacade;
- import com.service.KhxxFacade;
- import com.service.KhxxFacadeImpl;
- //查看投诉的具体信息
- public class KhtsSelectContent
- extends Action {
- private KhtsFacade facade = null;
- private KhxxFacade khxxFacade = null;
- public KhtsSelectContent() {
- this.facade = new KhtsFacadeImpl();
- this.khxxFacade = new KhxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- KhtsForm khtsForm = (KhtsForm) actionForm;
- khtsForm.setId(Integer.valueOf(servletRequest.getParameter("id")));
- servletRequest.setAttribute("form", this.facade.SelectOne(khtsForm));
- servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
- if (servletRequest.getParameter("method") == null) {
- return actionMapping.findForward("khtsSelectContent");
- }
- else if (servletRequest.getParameter("method").equals("2")){
- return actionMapping.findForward("queryKhtsContent");
- }
- return actionMapping.findForward("khtsSelectOne");
- }
- }