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

企业管理

开发平台:

Java

  1. package com.webtier.clientBankAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.CbankFacade;
  5. import com.service.CbankFacadeImpl;
  6. import com.domain.CbankForm;
  7. import com.tool.Chinese;
  8. import java.io.UnsupportedEncodingException;
  9. //修改的操作
  10. public class CbankUpdate
  11.     extends Action {
  12.   private CbankFacade facade = null;
  13.   public CbankUpdate() {
  14.     this.facade = new CbankFacadeImpl();
  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.     CbankForm cbankForm = (CbankForm) actionForm;
  24.     cbankForm.setBank_id(httpServletRequest.getParameter("id"));
  25.     cbankForm.setBank_name(chinese.str(httpServletRequest.getParameter("name")));
  26.     cbankForm.setBank_bz(chinese.str(httpServletRequest.getParameter("bz")));
  27.     this.facade.bankUpdate(cbankForm);
  28.     return actionMapping.findForward("cbankUpdate");
  29.   }
  30. }