CbankInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientBankAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.domain.CbankForm;
- import com.service.CbankFacade;
- import com.service.CbankFacadeImpl;
- import com.tool.Chinese;
- //插入操作
- public class CbankInsert
- extends Action {
- private CbankFacade facade = null;
- public CbankInsert() {
- this.facade = new CbankFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- 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.bankInsert(cbankForm);
- return actionMapping.findForward("cbankInsert");
- }
- }