envdbx.jsp
 1 <%@ page language="java" pageEncoding="ISO-8859-1"%>
 2 
 3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 4 <html>
 5     <head>
 6         <title>Java JVM Environment</title>
 7     </head>
 8     <body bgcolor="#D0D0D0">
 9         <h1>
10             Java JVM Environment
11         </h1>
12         
13         <table border="1" bgcolor="#C0C0C0" align="center">
14             <tr>
15                 <th>
16                     Key
17                 </th>
18                 <th>
19                     Value
20                 </th>
21             </tr>
22             
23             <%
24             java.util.Properties props = System.getProperties();
25             java.util.Enumeration propsKeys = props.propertyNames();
26             
27             while (propsKeys.hasMoreElements()) {
28             String currentKey = (String) propsKeys.nextElement();
29             String currentVal = (String) props.getProperty(currentKey);
30             %>
31             <tr>
32                 <td>
33                     <%=currentKey%>
34                 </td>
35                 <td>
36                     <%=currentVal%>
37                 </td>
38             </tr>
39             <%
40             }
41             %>
42         </table>
43     </body>
44 </html>