📄 updateygxinxiaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.gensou.struts.yuangong.xinxi.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.gensou.dao.yuangong.xinxi.YuangongxinxiDao;
import com.gensou.logic.yuangong.xinxi.UpdateygxinxiService;
import com.gensou.struts.yuangong.xinxi.form.UpdateygxinxiForm;
/**
* MyEclipse Struts
* Creation date: 01-16-2007
*
* XDoclet definition:
* @struts.action path="/updateygxinxi" name="updateygxinxiForm" scope="request" validate="true"
*/
public class UpdateygxinxiAction extends Action {
/*
* Generated Methods
*/
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
UpdateygxinxiForm updateygxinxiForm = (UpdateygxinxiForm) form;// TODO Auto-generated method stub
UpdateygxinxiService updateygxinxi=new UpdateygxinxiService(updateygxinxiForm);
YuangongxinxiDao yuangongxinxiDao=new YuangongxinxiDao();
boolean bool=yuangongxinxiDao.updateygxinxi(updateygxinxi);
String str;
if(bool==true){
str="信息更新成功";
request.setAttribute("str", str);
return mapping.findForward("updateygxinxi");
}else{
str="信息更新失败";
request.setAttribute("str", str);
request.setAttribute("updateygxinxi", updateygxinxi);
return mapping.findForward("updateygxinxi");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -