CqylxInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQylxAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CqylxFacade;
- import com.service.CqylxFacadeImpl;
- import com.tool.Chinese;
- import com.domain.CqylxForm;
- //插入操作
- public class CqylxInsert
- extends Action {
- private CqylxFacade qylx = null;
- public CqylxInsert() {
- this.qylx = new CqylxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese = new Chinese();
- CqylxForm cqylxForm = (CqylxForm) actionForm;
- cqylxForm.setQylx_id(chinese.str(httpServletRequest.getParameter("id")));
- cqylxForm.setQylx_lxmc(Chinese.str(httpServletRequest.getParameter("lxmc")));
- cqylxForm.setQylx_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.qylx.qylxInsert(cqylxForm);
- return actionMapping.findForward("cqylxInsert");
- }
- }