Example #1
0
  public ActionForward staticLeaveInfo(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    Map filterMap = WebUtils.getParametersStartingWith(request, "leave_");

    log.debug("Static");

    List departmentTree = departmentService.getDepartmentTree(0, null);
    request.setAttribute("departmentTree", departmentTree);

    List staticInfoList = leaveInfoService.staticLeaveInfoByFilter(filterMap);
    request.setAttribute("staticInfoList", staticInfoList);

    request.setAttribute("endDate", filterMap.get("endDate"));

    return mapping.findForward("goStatic");
  }