CqyxxUpdate.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.CqyxxFacade;
- import com.service.CqyxxFacadeImpl;
- import java.io.UnsupportedEncodingException;
- import com.tool.Chinese;
- //修改的操作
- public class CqyxxUpdate
- extends Action {
- private CqyxxFacade qyxxFacade = null;
- public CqyxxUpdate() {
- this.qyxxFacade = new CqyxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) throws
- UnsupportedEncodingException {
- httpServletRequest.setCharacterEncoding("gb2312");
- Chinese chinese = new Chinese();
- CqyxxForm cqyxxForm = (CqyxxForm) actionForm;
- cqyxxForm.setId(chinese.str(httpServletRequest.getParameter("id")));
- cqyxxForm.setQymc(chinese.str(httpServletRequest.getParameter("qymc")));
- cqyxxForm.setQyjb(chinese.str(httpServletRequest.getParameter("qyjb")));
- cqyxxForm.setZscd(chinese.str(httpServletRequest.getParameter("zscd")));
- cqyxxForm.setQygml(chinese.str(httpServletRequest.getParameter("qygml")));
- cqyxxForm.setBz(chinese.str(httpServletRequest.getParameter("bz")));
- this.qyxxFacade.qyxxUpdate(cqyxxForm);
- return actionMapping.findForward("cqyxxUpdate");
- }
- }