You can use the ServletRequest's getServerPort().
-A.Sankar.

-----Original Message-----
From: Alan Tang [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 12:43 PM
To: Tomcat Users List
Subject: method to retrieve the port number specified in conf/server.xml


Hi,

Could anybody please tell me if there's an easy way to retrieve the port
number (i mean in the program)  being specified in conf/server.xml (e.g,
8080)?

<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75" enableLookups="true"
redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="60000" />

I appreciate your comments!

Alan Tang
Lucent Technologies.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to