You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Libor Tvrdik <lt...@trask.cz> on 2004/12/11 14:16:44 UTC
Table of System.properties
Hello,
First: I'm sorry. My english it's very bad.
And now my problem:
Some time I need information about JVM (used Tomcat, for
example solve parallel Java instalation on computer, ...). I
use very simple code in ROOT/index.jsp:
--------------------------
<table border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
<tr>
<th colspan="2">Java Properties</th>
</tr>
<%
java.util.Properties properties = System.getProperties();
java.util.Enumeration properKeys = proper.keys();
while( properKeys.hasMoreElements() )
{
String elem = (String)properKeys.nextElement(); %>
<tr>
<td><%=elem%></td>
<td><%=properties.get(elem)%></td>
</tr><%
}
%>
</table>
--------------------------
But it's tiresome copy this code after each upgrade. Table
present very important information.
Can you change perhaps ADMINISTRATION tool (/admin) so that
displayed similar table (I think about Tomcat Server page)?
I can write code for ADMINISTRATION tool (/admin) if we need.
Best regards,
Libor Tvrdik
--
Senior Analyst Programmer
--------------------------
Trask solutions s.r.o.
www.trask.cz
www.edoceo.cz
Tel: (+420) 220 414 111
Fax: (+420) 220 414 127
GSM: (+420) 602 738 617
Podbabská 20
160 46 Praha 6
Czech Republic
--------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org