📄 customerlistaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.company.struts.action.customer;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
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 com.company.struts.action.basic.BaseDAO;
import com.company.struts.form.GyCustomer;
/**
* MyEclipse Struts
* Creation date: 02-25-2008
*
* XDoclet definition:
* @struts.action path="/customerList" name="gyCustomerForm" scope="request" validate="true"
*/
public class CustomerListAction extends BaseDAO {
/*
* 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) {
HttpSession session=request.getSession();
//部门
List listbumen=this.getDaobumen().findAll();
session.setAttribute("bumenList", listbumen);
//地区
List listtrade=this.getDao1().findAll();
session.setAttribute("areaList", listtrade);
//行业
List listTrade=this.getDaoTrade().findAll();
session.setAttribute("tradeList", listTrade);
//销售员
List listyewu=this.getDaoyewu().findAll();
session.setAttribute("yewuList", listyewu);
//客户名称
List listcustomer=this.getDao().findAll();
session.setAttribute("customer", listcustomer);
List list=this.getDao().findAll();
session.setAttribute("customerListnn", list);
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -