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

企业管理

开发平台:

Java

  1. package com.webtier.clientQyxxAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.domain.CqyxxForm;
  5. import com.service.CqyxxFacadeImpl;
  6. import com.service.CqyxxFacade;
  7. import java.io.UnsupportedEncodingException;
  8. //删除的操作
  9. public class CqyxxDelete
  10.     extends Action {
  11.   private CqyxxFacade qyxxFacade = null;
  12.   public CqyxxDelete() {
  13.     this.qyxxFacade = new CqyxxFacadeImpl();
  14.   }
  15.   public ActionForward perform(ActionMapping actionMapping,
  16.                                ActionForm actionForm,
  17.                                HttpServletRequest httpServletRequest,
  18.                                HttpServletResponse httpServletResponse) throws
  19.       UnsupportedEncodingException {
  20.     httpServletRequest.setCharacterEncoding("gb2312");
  21.     CqyxxForm cqyxxForm = (CqyxxForm) actionForm;
  22.     cqyxxForm.setId(httpServletRequest.getParameter("id"));
  23.     this.qyxxFacade.qyxxDelete(cqyxxForm);
  24.     return actionMapping.findForward("cqyxxDelete");
  25.   }
  26. }