CqyzxInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQyzxAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CqyzxFacade;
- import com.service.CqyzxFacadeImpl;
- import com.domain.CqyzxForm;
- import com.tool.Chinese;
- //修改操作
- public class CqyzxInsert
- extends Action {
- private CqyzxFacade qyzxFacade = null;
- public CqyzxInsert() {
- this.qyzxFacade = new CqyzxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese = new Chinese();
- CqyzxForm cqyzxForm = (CqyzxForm) actionForm;
- cqyzxForm.setQyzx_id(httpServletRequest.getParameter("id"));
- cqyzxForm.setQyzx_zxjb(chinese.str(httpServletRequest.getParameter("zxjb")));
- cqyzxForm.setQyzx_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.qyzxFacade.qyzxInsert(cqyzxForm);
- return actionMapping.findForward("cqyzxInsert");
- }
- }