PageRenderTime 63ms CodeModel.GetById 23ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. --%>
  15. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  16. <%@page errorPage="error_page.jsp" %>
  17. <%@page import="java.util.*" %>
  18. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  19. "http://www.w3.org/TR/html4/loose.dtd">
  20. <html>
  21. <head>
  22. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  23. <title>Diagnostics</title>
  24. </head>
  25. <body>
  26. <table>
  27. <tr>
  28. <td valign="top" width="100"><jsp:include page="/left_navigation.jsp"/></td>
  29. <td valign="top">
  30. <h2>System.getProperties()</h2>
  31. <table border="1">
  32. <tr>
  33. <td>Name</td>
  34. <td>Value</td>
  35. </tr>
  36. <%
  37. Properties p = System.getProperties();
  38. for (Object o : p.keySet()) {%>
  39. <tr>
  40. <td><%=o%></td>
  41. <td><%=p.getProperty(((String) o))%></td>
  42. </tr>
  43. <% }%>
  44. </table>
  45. <h2>System.getenv()</h2>
  46. <table border="1">
  47. <tr>
  48. <td>Name</td>
  49. <td>Value</td>
  50. </tr>
  51. <%
  52. Map<String,String> env = System.getenv();
  53. for (String key : env.keySet() ) {%>
  54. <tr>
  55. <td><%=key%></td>
  56. <td><%=env.get(key)%></td>
  57. </tr>
  58. <% }%>
  59. </table>
  60. </td>
  61. </tr>
  62. </table>
  63. </body>
  64. </html>