CqyxzDelete.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQyxzAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CqyxzFacade;
- import com.service.CqyxzFacadeImpl;
- import java.io.UnsupportedEncodingException;
- import com.domain.CqyxzForm;
- import com.tool.Chinese;
- //删除操作
- public class CqyxzDelete
- extends Action {
- private CqyxzFacade qyxzFacade = null;
- public CqyxzDelete() {
- this.qyxzFacade = new CqyxzFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) throws
- UnsupportedEncodingException {
- httpServletRequest.setCharacterEncoding("gb2312");
- Chinese chinese = new Chinese();
- CqyxzForm qyxzform = (CqyxzForm) actionForm;
- qyxzform.setQyxz_id(chinese.str(httpServletRequest.getParameter("id")));
- this.qyxzFacade.qyxzDelete(qyxzform);
- return actionMapping.findForward("cqyxzDelete");
- }
- }