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

企业管理

开发平台:

Java

  1. package com.webtier.clientQyxzAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.CqyxzFacade;
  5. import com.service.CqyxzFacadeImpl;
  6. import java.io.UnsupportedEncodingException;
  7. import com.domain.CqyxzForm;
  8. import com.tool.Chinese;
  9. //删除操作
  10. public class CqyxzDelete
  11.     extends Action {
  12.   private CqyxzFacade qyxzFacade = null;
  13.   public CqyxzDelete() {
  14.     this.qyxzFacade = new CqyxzFacadeImpl();
  15.   }
  16.   public ActionForward perform(ActionMapping actionMapping,
  17.                                ActionForm actionForm,
  18.                                HttpServletRequest httpServletRequest,
  19.                                HttpServletResponse httpServletResponse) throws
  20.       UnsupportedEncodingException {
  21.     httpServletRequest.setCharacterEncoding("gb2312");
  22.     Chinese chinese = new Chinese();
  23.     CqyxzForm qyxzform = (CqyxzForm) actionForm;
  24.     qyxzform.setQyxz_id(chinese.str(httpServletRequest.getParameter("id")));
  25.     this.qyxzFacade.qyxzDelete(qyxzform);
  26.     return actionMapping.findForward("cqyxzDelete");
  27.   }
  28. }