⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findorderaction.java

📁 订货系统:这是在Eclipse环境下开发的
💻 JAVA
字号:
package cn.hxex.order.action;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import cn.hxex.order.bo.Order;
import cn.hxex.order.forms.OrderForm;

/**
 * This class will find an order and display it.
 * 
 * @author galaxy
 *
 */
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 + -