Пример #1
0
  public ActionForward listMonitorService(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    // query condition
    MonitorService monitorService = (MonitorService) ((DynaActionForm) form).get("monitorService");

    DBPaginatedList page = new DBPaginatedList();
    PaginationUtil.pageInfoPopulate("row", request, page);
    monitorHostserviceService.findMonitorServiceByPage(page, monitorService);

    request.setAttribute("hostserviceList", page);
    ((DynaActionForm) form).set("monitorService", monitorService);

    return mapping.findForward("list");
  }
Пример #2
0
  public ActionForward listMonitorServiceTemplate(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    // query condition
    MonitorServiceTemplate monitorServiceTemplate =
        (MonitorServiceTemplate) ((DynaActionForm) form).get("monitorServiceTemplate");
    List monitorContactgroups = monitorSupportService.findAllMonitorContactgroups();

    DBPaginatedList page = new DBPaginatedList();
    PaginationUtil.pageInfoPopulate("row", request, page);
    templateService.findMonitorServiceTemplateByPage(page, monitorServiceTemplate);

    request.setAttribute("serviceTemplates", page);
    request.getSession().setAttribute("monitorContactgroups", monitorContactgroups);
    ((DynaActionForm) form).set("monitorServiceTemplate", monitorServiceTemplate);

    return mapping.findForward("list");
  }