I know there are methods in the java.net.URL class for this:

Attatched is the entire java.net.URL class for you to reference.

see the examples that comes with tomcat too!

-----Original Message-----
From: Pernica, Jan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 11:57 PM
To: Tomcat-User (E-mail)
Subject: How to get server URL?


Hi 

How can I get the server name?
I do not like HttpServlet.getServerName() because if I access it from local
network the name differs from the name when
accessing it from internet.

Any suggestions?

Regards

Jan

> Mgr. Jan Pernica, MSc.
> Project Manager
> DCB Actuaries and Consultants
> Tel: +420 5 4221 7390-5
> Mobile: +420 602 52 42 51
> Fax:+420 5 4221 7399
> http://www.dcb.cz
> mailto:[EMAIL PROTECTED]
> 
> 
> 
__________________________________________________________________
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.



URL.java

Reply via email to