Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 8130 invoked from network); 20 Feb 2006 01:56:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Feb 2006 01:56:08 -0000 Received: (qmail 10720 invoked by uid 500); 20 Feb 2006 01:55:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 10582 invoked by uid 500); 20 Feb 2006 01:55:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 10571 invoked by uid 99); 20 Feb 2006 01:55:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2006 17:55:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.227.126.188] (HELO moutng.kundenserver.de) (212.227.126.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2006 17:55:52 -0800 Received: from [80.136.182.123] (helo=[192.168.1.2]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1FB0Gv3i0k-0008WC; Mon, 20 Feb 2006 02:55:30 +0100 Message-ID: <43F92227.2090607@gslweb.de> Date: Mon, 20 Feb 2006 02:57:59 +0100 From: Georg Sauer-Limbach User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Retrieving host name References: <001101c6356d$262600d0$5600000a@rnd.capitalmerchant.com> In-Reply-To: <001101c6356d$262600d0$5600000a@rnd.capitalmerchant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:cd437d523e40bb1d83964af654b7f972 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > How can I retrieve the host name (defined in the tomcat server.xml) or some > unique host id in a JSP/Servlet code? request.getRequestURL() returns the complete URL the client used. If you have multiple s in your tomcat installation, then here you see the host name used. See javax.servlet.http.HttpServletRequest.getRequestURL at http://java.sun.com/j2ee/1.4/docs/api/index.html . Georg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org