dc2301e1saction.java
来自「一个完整的物流系统」· Java 代码 · 共 59 行
JAVA
59 行
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package jp.com.cost.dc.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.dc.service.DC2301Service;
import jp.com.cost.dc.web.form.DC2301Form;
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;
/**
* MyEclipse Struts
* Creation date: 09-03-2008
*
* XDoclet definition:
* @struts.action scope="request" validate="true"
*/
public class DC2301E1SAction 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 {
DC2301Service dc2301Service = (DC2301Service) ContextHelper
.getContext().getBean("dc2301ServiceProxy");
DC2301Form dc2301Form = (DC2301Form)form;
String id = dc2301Form.getId();
String state = dc2301Form.getState();
List list = dc2301Service.searchByCon(id, state);
request.getSession().setAttribute("DC2301ViewEntity1List",list);
} catch (BeansException e) {
// TODO Auto-generated catch block
return mapping.findForward("error");
}
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?