📄 findorderaction.java
字号:
/*
* Created on Mar 12, 2004
*
* (c) 2004, Mark Eagle, meagle@meagle.com
* relased under terms of the GNU public license
* http://www.gnu.org/licenses/licenses.html#TOCGPL
*/
package com.meagle.action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.meagle.bo.Order;
import com.meagle.forms.OrderForm;
/**
* @author MEagle
*
* This class will find an order and display it.
*/
public class FindOrderAction extends BaseAction {
/**
* Default constructor
*/
public FindOrderAction() {
super();
}
/**
* Implementation for Struts execute
*/
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception {
// Assemble the order from the form
OrderForm oForm = (OrderForm) form;
// delegate the save to the service layer and further upstream
Order order = getOrderService().findOrderById(oForm.getOrderId());
oForm.setOrder(order);
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -