📄 xs3301e0saction.java
字号:
package jp.com.cost.xs.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.pojo.Account;
import jp.com.cost.xs.service.XS3301Service;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class XS3301E0SAction extends Action{
@Override
public ActionForward execute(ActionMapping mapping, ActionForm arg1,
HttpServletRequest request, HttpServletResponse arg3){
try{
XS3301Service xs3301Service = (XS3301Service) ContextHelper
.getContext().getBean("xs3301ServiceProxy");
Account account=(Account)request.getSession().getAttribute("account");
List list = xs3301Service.searchAll(account.getId().toString());
request.getSession().setAttribute("XS3301ViewEntity1List",list);
}catch(Exception e){
return mapping.findForward("error");
}
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -