Example #1
0
  public ActionForward searchLeaveInfo(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    Map filterMap = WebUtils.getParametersStartingWith(request, "leave_");

    List departmentTree = departmentService.getDepartmentTree(0, null);
    List leaveInfoList = leaveInfoService.searchLeaveInfo(filterMap);

    request.setAttribute("departmentTree", departmentTree);
    request.setAttribute("leaveInfoList", leaveInfoList);

    return mapping.findForward("leaveInfoQuery");
  }