<%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> <%@ page import="org.apache.geronimo.monitoring.console.StatsGraph" %> <%@ page import="org.apache.geronimo.monitoring.console.GraphsBuilder" %> <%@ page import="java.util.Set" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.util.HashMap" %> <%@ page import="java.util.TreeMap" %> <%@ page import="java.util.ArrayList" %> <%@ page import="java.lang.String" %> <%@ page import="java.sql.Connection" %> <%@ page import="java.sql.DatabaseMetaData" %> <%@ page import="java.sql.PreparedStatement" %> <%@ page import="java.sql.ResultSet" %> <%@ page import="java.sql.SQLException" %> <%@ page import="org.apache.geronimo.monitoring.console.util.*" %> <% String view_id = (String) request.getAttribute("view_id"); String message = (String) request.getAttribute("message"); DBManager DBase = new DBManager(); Connection con = DBase.getConnection(); PreparedStatement pStmt = con.prepareStatement("SELECT * FROM views WHERE view_id="+view_id); ResultSet rs = pStmt.executeQuery(); if (message == null) message = new String(""); if (rs.next()) { String added = rs.getString("added").substring(0,16); String modified = rs.getString("modified").substring(0,16); Integer enabled = rs.getInt("enabled"); String name = rs.getString("name"); String description = rs.getString("description"); Integer graph_count = rs.getInt("graph_count"); rs.close(); %> <% if (!message.equals("")) { %>
<%=message %>
<%} %>

Editing: <%=name%>

">
Added:   <%=added%>
Last Modified:   <%=modified%>
Name:  
Description:  
Graphs:   <% DBase = new DBManager(); con = DBase.getConnection(); pStmt = con.prepareStatement("SELECT * FROM graphs"); rs = pStmt.executeQuery(); pStmt = con.prepareStatement("SELECT * FROM views_graphs WHERE view_id="+view_id); ResultSet rs2 = pStmt.executeQuery(); ArrayList graphsList = new ArrayList(); while (rs2.next()) { graphsList.add(rs2.getInt("graph_id")); } %> <% while (rs.next()) { pStmt = con.prepareStatement("SELECT name FROM servers WHERE server_id="+rs.getString("server_id")); rs2 = pStmt.executeQuery(); if (rs2.next()) { %> <% } rs2.close(); } rs.close(); %>
Name Timeframe Server Edit
" <%if (graphsList.contains(rs.getInt("graph_id"))){%> checked<%}%>> ','graph','width=800,height=300','title=<%=rs.getString("name") %>')"><%=rs.getString("name")%> <%=rs.getString("timeframe")%> min. " />"><%=rs2.getString("name")%> " />">
 
 

     
Navigation
 
 


Actions
 
 
<% con.close(); } else {%>
<< Back

View does not exist

     
Navigation
 
 


Actions
 
 
<% }%>