📄 xs3201e4saction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package jp.com.cost.xs.web.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jp.com.cost.common.ContextHelper;
import jp.com.cost.pojo.Ship;
import jp.com.cost.xs.service.XS3201Service;
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: 08-31-2008
*
* XDoclet definition:
* @struts.action validate="true"
*/
public class XS3201E4SAction 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) {
try{
String oid = request.getParameter("oid");
XS3201Service xs3201Service = (XS3201Service) ContextHelper
.getContext().getBean("xs3201ServiceProxy");
Ship ship=xs3201Service.searchById(oid);
request.setAttribute("ship",ship);
}catch(Exception e){
return mapping.findForward("error");
}
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -