Beispiel #1
0
 public String list() {
   // 查询部门信息
   List<DepModel> depList = depEbi.getAll();
   put("depList", depList);
   // 查询所有用户
   List<EmpModel> empList = empEbi.getAll(eqm, (pageNum - 1) * pageCount, pageCount);
   // 初始化总页面数
   initTotalPage(empEbi.getCount(eqm));
   // 将查询到的集合放入值栈中(这里推荐使用action或request)
   put("empList", empList);
   return LIST;
 }