Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Tomcat instance info from JSP page

wsedio

2004-05-19

Replies:

On 19-05-2004 17:27, Shapira, Yoav wrote:

> That's probably enough for your needs?

Thanks for your help, I did a simple JSP file and it gives me all the
info I need:

<%
out.println( "catalina.base = " + System.getProperty("catalina.base") );

out.println();

out.println( "getRemotePort = " + request.getRemotePort() );
out.println( "getLocalName = " + request.getLocalName() );
out.println( "getLocalAddr = " + request.getLocalAddr() );
out.println( "getLocaPort = " + request.getLocalPort() );
out.println( "getServerInfo = " + application.getServerInfo() );

out.println();

java.util.Enumeration e = System.getProperties().propertyNames();
while( e.hasMoreElements() )
{
String prop = (String)e.nextElement();
out.println( prop + " = " + System.getProperty(prop) );
}

%>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.