📄 lxrxxinsert.java~4~
字号:
package com.webtier.clientlxrxxAction;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import com.domain.LxrxxForm;
import org.apache.struts.action.Action;
import com.service.LxrxxFacade;
import com.service.LxrxxFacadeImpl;
//插入操作
public class LxrxxInsert
extends Action {
private LxrxxFacade facade = null;
public LxrxxInsert() {
this.facade = new LxrxxFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse) {
LxrxxForm lxrxxForm = (LxrxxForm) actionForm;
lxrxxForm.setLxrxx_id();
lxrxxForm.setLxrxx_qymc();
lxrxxForm.setLxrxx_xm();
lxrxxForm.setLxrxx_xb();
lxrxxForm.setLxrxx_csny();
lxrxxForm.setLxrxx_nl();
lxrxxForm.setLxrxx_zw();
lxrxxForm.setLxrxx_bgdh();
lxrxxForm.setLxrxx_Email();
lxrxxForm.setLxrxx_sj();
lxrxxForm.setLxrxx_grjj();
String year = servletRequest.getParameter("year");
String month = servletRequest.getParameter("month");
String date = servletRequest.getParameter("date");
String djrq = "今天是" + year + "年" + month + "月" + date + "日";
lxrxxForm.setLxrxx_djrq(djrq);
lxrxxForm.setLxrxx_xxdjr();
lxrxxForm.setLxrxx_bs();
lxrxxForm.setLxrxx_bz();
return actionMapping.findForward("lxrxxInsert");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -