Skip to content

Instantly share code, notes, and snippets.

@gerjantd
Created April 9, 2013 12:43
Show Gist options
  • Save gerjantd/5345414 to your computer and use it in GitHub Desktop.
Save gerjantd/5345414 to your computer and use it in GitHub Desktop.
Java/JSP: list JVM properties
<HTML>
<BODY>
<%
out.println("<DL>");
java.util.Properties props = System.getProperties();
java.util.Enumeration e = props.propertyNames();
while (e.hasMoreElements())
{
String key = (String) e.nextElement();
String value = props.getProperty (key);
out.println("<DT>"+key+"</DT><DD>"+value+"<DD/>");
}
out.println("</DL>");
%>
</BODY>
</HTML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment