CqyxzInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientQyxzAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CqyxzFacade;
- import com.service.CqyxzFacadeImpl;
- import com.domain.CqyxzForm;
- import com.tool.Chinese;
- //插入操作
- public class CqyxzInsert
- extends Action {
- private CqyxzFacade qyxzFacade = null;
- public CqyxzInsert() {
- this.qyxzFacade = new CqyxzFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese = new Chinese();
- CqyxzForm cqyxzForm = (CqyxzForm) actionForm;
- cqyxzForm.setQyxz_id(chinese.str(httpServletRequest.getParameter("id")));
- cqyxzForm.setQyxz_xzmc(chinese.str(httpServletRequest.getParameter("xzmc")));
- cqyxzForm.setQyxz_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.qyxzFacade.qyxzInsert(cqyxzForm);
- return actionMapping.findForward("cqyxzInsert");
- }
- }