CkhmydInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientKhmydAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CkhmydFacade;
- import com.service.CkhmydFacadeImpl;
- import com.domain.CkhmydForm;
- import com.tool.Chinese;
- //插入操作
- public class CkhmydInsert
- extends Action {
- private CkhmydFacade khmyd = null;
- public CkhmydInsert() {
- this.khmyd = new CkhmydFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese = new Chinese();
- CkhmydForm ckhmydForm = (CkhmydForm) actionForm;
- ckhmydForm.setKhmyd_id(httpServletRequest.getParameter("id"));
- ckhmydForm.setKhmyd_myd(chinese.str(httpServletRequest.getParameter("myd")));
- ckhmydForm.setKhmyd_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.khmyd.khmydInsert(ckhmydForm);
- return actionMapping.findForward("ckhmydInsert");
- }
- }