📄 xt6103e1saction.java
字号:
package jp.com.cost.xt.web.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jp.com.cost.common.ContextHelper;
import jp.com.cost.xt.entity.XT6104ViewEntity1;
import jp.com.cost.xt.entity.XT6106ViewEntity1;
import jp.com.cost.xt.service.XT6103Service;
import jp.com.cost.xt.service.XT6104Service;
import jp.com.cost.xt.service.XT6106Service;
import jp.com.cost.xt.web.form.XT6103Form;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
/**
* MyEclipse Struts Creation date: 09-02-2008 XT6103E1S - 保存事件
*
* @author 莫建超
* @version 1.0
* @struts.action validate="true"
*/
public class XT6103E1SAction extends Action {
/**
* Method execute
*
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
try {
// TODO Auto-generated method stub
XT6103Form f = (XT6103Form) form;
XT6103Service service = (XT6103Service) ContextHelper.getContext()
.getBean("xt6103ServiceProxy");
boolean b = service.updateAccount(f);
XT6106Service xt6106s = (XT6106Service) ContextHelper.getContext()
.getBean("xt6106ServiceProxy");
List list1 = xt6106s.searchARByAid(f.getId());
List list2 = xt6106s.searchAROthers(f.getId());
request.getSession().setAttribute("xt6103form",f);
request.getSession().setAttribute("xt6106ViewEntity1List1",list1);
request.getSession().setAttribute("xt6106ViewEntity1List2",list2);
} catch (RuntimeException e) {
// TODO Auto-generated catch block
return mapping.findForward("error");
}
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -