CbankUpdate.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientBankAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CbankFacade;
- import com.service.CbankFacadeImpl;
- import com.domain.CbankForm;
- import com.tool.Chinese;
- import java.io.UnsupportedEncodingException;
- //修改的操作
- public class CbankUpdate
- extends Action {
- private CbankFacade facade = null;
- public CbankUpdate() {
- this.facade = new CbankFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) throws
- UnsupportedEncodingException {
- httpServletRequest.setCharacterEncoding("gb2312");
- Chinese chinese = new Chinese();
- CbankForm cbankForm = (CbankForm) actionForm;
- cbankForm.setBank_id(httpServletRequest.getParameter("id"));
- cbankForm.setBank_name(chinese.str(httpServletRequest.getParameter("name")));
- cbankForm.setBank_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.facade.bankUpdate(cbankForm);
- return actionMapping.findForward("cbankUpdate");
- }
- }