public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;

    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write(
          "<!--\n\n//\n// This file is part of the OpenNMS(R) Application.\n//\n// OpenNMS(R) is Copyright (C) 2002-2003 The OpenNMS Group, Inc.  All rights reserved.\n// OpenNMS(R) is a derivative work, containing both original code, included code and modified\n// code that was published under the GNU General Public License. Copyrights for modified \n// and included code are below.\n//\n// OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.\n//\n// Modifications:\n//\n// 2002 Nov 12: Added response time, based on original  performance code.\n//\n// Original code base Copyright (C) 1999-2001 Oculan Corp.  All rights reserved.\n//\n// This program is free software; you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation; either version 2 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n");
      out.write(
          "// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with this program; if not, write to the Free Software\n// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n//\n// For more information contact:\n//      OpenNMS Licensing       ");
      out.write(
          "<*****@*****.**>\n//      http://www.opennms.org/\n//      http://www.opennms.com/\n//\n\n-->\n\n");
      out.write("\n\n");
      out.write("\n\n");
      out.write("\n\n");

      ResponseTimeModel.QueryableNode[] nodes = this.model.getQueryableNodes();

      out.write("\n      \n");
      out.write(
          "<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bordercolor=\"black\" bgcolor=\"#cccccc\">\n  ");
      out.write("<tr>\n    ");
      out.write("<td bgcolor=\"#999999\" >");
      out.write("<b>");
      out.write("<a href=\"response/index.jsp\">Response Time");
      out.write("</a>");
      out.write("</b>");
      out.write("</td>\n  ");
      out.write("</tr>\n\n");
      if (nodes != null && nodes.length > 0) {
        out.write("\n  ");
        out.write("<tr> \n    ");
        out.write("<td>\n      ");
        out.write("<form method=\"get\" action=\"response/addIntfFromNode\" >\n        ");
        out.write(
            "<input type=\"hidden\" name=\"endUrl\" value=\"response/addReportsToUrl\" />\n        ");
        out.write("<input type=\"hidden\" name=\"relativetime\" value=\"lastday\" />\n\n        ");
        out.write(
            "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n          ");
        out.write("<tr>\n            ");
        out.write("<td>\n              ");
        out.write("<font size=\"-1\">Choose a node to query");
        out.write("</font>\n            ");
        out.write("</td>\n          ");
        out.write("</tr>\n          ");
        out.write("<tr>\n            ");
        out.write("<td>\n              ");
        out.write("<select name=\"node\" size=\"1\">\n                ");
        for (int i = 0; i < nodes.length; i++) {
          out.write("\n                   ");
          out.write("<option value=\"");
          out.print(nodes[i].nodeId);
          out.write("\">");
          out.print(nodes[i].nodeLabel);
          out.write("</option>\n                ");
        }
        out.write("\n              ");
        out.write("</select>\n            ");
        out.write("</td>\n          ");
        out.write("</tr>\n          ");
        out.write("<tr>\n            ");
        out.write("<td>\n              ");
        out.write("<input type=\"submit\" value=\"Execute Query\" />\n            ");
        out.write("</td>\n          ");
        out.write("</tr>\n        ");
        out.write("</table>\n      ");
        out.write("</form>\n    ");
        out.write("</td>\n  ");
        out.write("</tr>\n");
      } else {
        out.write("\n  ");
        out.write("<tr>\n    ");
        out.write("<td>\n      No response time data has been gathered yet\n    ");
        out.write("</td>\n  ");
        out.write("</tr>        \n");
      }
      out.write("\n");
      out.write("</table>\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0) out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;

    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n\n");
      out.write("\n\n");

      try {
        this.model = ResponseTimeModel.instance();
      } catch (Exception e) {
        throw new ServletException("Could not initialize the ResponseTimeModel", e);
      }

      ResponseTimeModel.QueryableNode[] nodes = this.model.getQueryableNodes();

      out.write("\n\n");
      out.write("<html>\n");
      out.write("<head>\n  ");
      out.write("<title>Response Time");
      out.write("</title>\n  ");
      out.write("<base HREF=\"");
      out.print(org.opennms.web.Util.calculateUrlBase(request));
      out.write("\" />\n  ");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"includes/styles.css\" />\n");
      out.write("</head>\n\n");
      out.write(
          "<script language=\"Javascript\" type=\"text/javascript\" >\n  function validateNode()\n  {\n      var isChecked = false\n      for( i = 0; i ");
      out.write(
          "< document.choose_node.node.length; i++ )\n      {\n         //make sure something is checked before proceeding\n         if (document.choose_node.node[i].selected)\n         {\n            isChecked=true;\n         }\n      }\n\n      if (!isChecked)\n      {\n          alert(\"Please check the node that you would like to report on.\");\n      }\n      return isChecked;\n  }\n\n  function validateNodeAdhoc()\n  {\n      var isChecked = false\n      for( i = 0; i ");
      out.write(
          "< document.choose_node_adhoc.node.length; i++ )\n      {\n         //make sure something is checked before proceeding\n         if (document.choose_node_adhoc.node[i].selected)\n         {\n            isChecked=true;\n         }\n      }\n\n      if (!isChecked)\n      {\n          alert(\"Please check the node that you would like to report on.\");\n      }\n      return isChecked;\n  }\n\n  function submitForm()\n  {\n      if (validateNode())\n      {\n          document.choose_node.submit();\n      }\n  }\n\n  function submitFormAdhoc()\n  {\n      if (validateNodeAdhoc())\n      {\n          document.choose_node_adhoc.submit();\n      }\n  }\n");
      out.write("</script>\n\n");
      out.write("<body>\n\n");
      String breadcrumb1 = "<a href='report/index.jsp'>Reports</a>";
      out.write("\n");
      String breadcrumb2 = "Response Time";
      out.write("\n");
      JspRuntimeLibrary.include(
          request,
          response,
          "/includes/header.jsp"
              + "?"
              + "title="
              + "Response+Time"
              + "&"
              + "location="
              + "response"
              + "&"
              + "breadcrumb="
              + java.net.URLEncoder.encode("" + breadcrumb1)
              + "&"
              + "breadcrumb="
              + java.net.URLEncoder.encode("" + breadcrumb2),
          out,
          false);
      out.write("\n\n");
      out.write("<br>\n");
      out.write("<!-- Body -->\n\n");
      out.write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" border=\"0\">\n  ");
      out.write("<tr>\n    ");
      out.write("<td>&nbsp;");
      out.write("</td>\n\n    ");
      out.write("<td valign=\"top\">\n      ");
      out.write("<h3>Standard Response Time Reports");
      out.write("</h3>\n\n      ");
      out.write(
          "<form method=\"get\" name=\"choose_node\" action=\"response/addIntfFromNode\" >\n        ");
      out.write("<p>Choose a node to generate a standard response time report on.");
      out.write("</p>\n        ");
      out.write("<p>\n          ");
      out.write(
          "<input type=\"hidden\" name=\"endUrl\" value=\"response/choosereportanddate.jsp\" />\n          ");
      out.write("<select name=\"node\" size=\"10\">\n            ");
      for (int i = 0; i < nodes.length; i++) {
        out.write("\n                ");
        out.write("<option value=\"");
        out.print(nodes[i].nodeId);
        out.write("\">");
        out.print(nodes[i].nodeLabel);
        out.write("</option>\n            ");
      }
      out.write("\n          ");
      out.write("</select>\n        ");
      out.write("</p>\n        ");
      out.write("<p>\n          ");
      out.write("<input type=\"button\" value=\"Start\" onclick=\"submitForm()\"/>\n        ");
      out.write("</p>\n      ");
      out.write("</form>\n\n      ");
      out.write("<h3>Custom Response Time Reports");
      out.write("</h3>\n\n      ");
      out.write(
          "<form method=\"get\" name=\"choose_node_adhoc\" action=\"response/adhoc.jsp\" >\n        ");
      out.write("<p>Choose a node to generate a custom response time report on.");
      out.write("</p>\n        ");
      out.write("<p>\n          ");
      out.write("<select name=\"node\" size=\"10\">\n            ");
      for (int i = 0; i < nodes.length; i++) {
        out.write("\n              ");
        out.write("<option value=\"");
        out.print(nodes[i].nodeId);
        out.write("\">");
        out.print(nodes[i].nodeLabel);
        out.write("</option>\n            ");
      }
      out.write("\n          ");
      out.write("</select>\n        ");
      out.write("</p>\n        ");
      out.write("<p>");
      out.write("<input type=\"button\" value=\"Start\" onclick=\"submitFormAdhoc()\"/>");
      out.write("</p>\n      ");
      out.write("</form>\n    ");
      out.write("</td>\n\n    ");
      out.write("<td>&nbsp;");
      out.write("</td>\n\n    ");
      out.write("<td valign=\"top\" width=\"60%\">\n      ");
      out.write("<h3>Network Response Time Data");
      out.write("</h3>\n\n      ");
      out.write("<p>The ");
      out.write("<strong>Standard Response Time Reports");
      out.write(
          "</strong> provide a stock way to\n        easily visualize the service response time data collected from managed nodes throughout\n        your network.\n      ");
      out.write("<p>\n\n      ");
      out.write("<p>");
      out.write("<strong>Custom Response Time Reports");
      out.write(
          "</strong> can be used to produce a single\n        graph that contains the data of your choice from a single interface or node.\n        You can select the timeframe, line colors, line styles, and title of the graph\n        and you can bookmark the results.\n      ");
      out.write("</p>\n    ");
      out.write("</td>\n\n    ");
      out.write("<td>&nbsp;");
      out.write("</td>\n  ");
      out.write("</tr>\n");
      out.write("</table>\n\n");
      out.write("<br>\n\n");
      JspRuntimeLibrary.include(
          request, response, "/includes/footer.jsp" + "?" + "location=" + "response", out, false);
      out.write("\n\n");
      out.write("</body>\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0) out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }