CqyxxDelete.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQyxxAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.domain.CqyxxForm;
- import com.service.CqyxxFacadeImpl;
- import com.service.CqyxxFacade;
- import java.io.UnsupportedEncodingException;
- //删除的操作
- public class CqyxxDelete
- extends Action {
- private CqyxxFacade qyxxFacade = null;
- public CqyxxDelete() {
- this.qyxxFacade = new CqyxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) throws
- UnsupportedEncodingException {
- httpServletRequest.setCharacterEncoding("gb2312");
- CqyxxForm cqyxxForm = (CqyxxForm) actionForm;
- cqyxxForm.setId(httpServletRequest.getParameter("id"));
- this.qyxxFacade.qyxxDelete(cqyxxForm);
- return actionMapping.findForward("cqyxxDelete");
- }
- }