PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.0.0-rc0/hive/external/hwi/web/diagnostics.jsp

#
JavaServer Pages | 71 lines | 64 code | 7 blank | 0 comment | 4 complexity | 795c6fe8a20fda7e5dc96eec28845060 MD5 | raw file
 1<%--
 2   Licensed to the Apache Software Foundation (ASF) under one or more
 3   contributor license agreements.  See the NOTICE file distributed with
 4   this work for additional information regarding copyright ownership.
 5   The ASF licenses this file to You under the Apache License, Version 2.0
 6   (the "License"); you may not use this file except in compliance with
 7   the License.  You may obtain a copy of the License at
 8
 9       http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16--%>
17<%@page contentType="text/html" pageEncoding="UTF-8"%>
18<%@page errorPage="error_page.jsp" %>
19<%@page import="java.util.*" %>
20<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
21"http://www.w3.org/TR/html4/loose.dtd">
22
23<html>
24  <head>
25    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
26    <title>Diagnostics</title>
27  </head>
28  <body>
29    <table>
30      <tr>
31        <td valign="top" width="100"><jsp:include page="/left_navigation.jsp"/></td>
32        <td valign="top">
33          
34          <h2>System.getProperties()</h2>
35          <table border="1">
36            <tr>
37              <td>Name</td>
38              <td>Value</td>
39            </tr>
40            <%
41          Properties p = System.getProperties();
42          for (Object o : p.keySet()) {%>
43            <tr>
44              <td><%=o%></td>
45              <td><%=p.getProperty(((String) o))%></td>
46            </tr>
47            <% }%>
48          </table>
49          
50               <h2>System.getenv()</h2>
51          <table border="1">
52            <tr>
53              <td>Name</td>
54              <td>Value</td>
55            </tr>
56            <%
57           Map<String,String> env =  System.getenv();
58          for (String key : env.keySet() ) {%>
59            <tr>
60              <td><%=key%></td>
61              <td><%=env.get(key)%></td>
62            </tr>
63            <% }%>
64          </table>
65          
66          
67        </td>
68      </tr>
69    </table>
70  </body>
71</html>