📄 sw4201e0saction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package jp.com.cost.sw.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.sw.entity.SW4201ViewEntity1List;
import jp.com.cost.sw.service.SW4201Service;
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 org.springframework.beans.BeansException;
public class SW4201E0SAction 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) {
try {
SW4201Service sw4201Service = (SW4201Service) ContextHelper
.getContext().getBean("sw4201ServiceProxy");
List<SW4201ViewEntity1List> list = sw4201Service.searchAll();
request.getSession().setAttribute("SW4201ViewEntity1Lsit", list);
} catch (BeansException e) {
// TODO Auto-generated catch block
return mapping.findForward("error");
}
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -