tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zorro3...@aol.com
Subject Re: Retrieving host name
Date Mon, 20 Feb 2006 19:32:48 GMT
Hi,
 
Is there code for retrieving server address (IP address?) too?
 
Thanks.
 
request.getServerName()


> -----Original Message-----
>  From: Amir Sadeh [mailto:amir@lastversion.com] 
> Sent: Sunday, February  19, 2006 10:57 AM
> To: users@tomcat.apache.org
> Subject:  Retrieving host name
> 
> Hi,
> How can I retrieve the host  name (defined in the tomcat 
> server.xml) or some unique host id in a  JSP/Servlet code?
> 
>  
> Regards,
> Amir  S


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message