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

📄 customerlistaction.java

📁 struts + hibernate + spring ssh 的源码练习
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.2/xslt/JavaClass.xslpackage struts.action;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;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 persistence.bl.LibraryManager;import struts.form.CustomerListForm;/**  * MyEclipse Struts * Creation date: 11-29-2004 *  * XDoclet definition: * @struts:action path="/customerList" name="customerListForm" scope="request" * @struts:action-forward name="/showCustomerList" path="/jsp/customerList.jsp" */public class CustomerListAction extends Action{  /**    * loads customers from the db and saves them in the request   * @param mapping   * @param form   * @param request   * @param response   * @return ActionForward   */  public ActionForward execute(    ActionMapping mapping,    ActionForm form,    HttpServletRequest request,    HttpServletResponse response)  {    CustomerListForm customerListForm = (CustomerListForm) form;    // [laliluna] 29.11.2004 get business logic    LibraryManager libraryManager = new LibraryManager();        customerListForm.setCustomers(libraryManager.getAllCustomers());    return mapping.findForward("showCustomerList");  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -