Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 47366 invoked from network); 20 Jul 2004 12:12:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Jul 2004 12:12:22 -0000 Received: (qmail 46573 invoked by uid 500); 20 Jul 2004 12:12:10 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 46532 invoked by uid 500); 20 Jul 2004 12:12:09 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 46519 invoked by uid 99); 20 Jul 2004 12:12:09 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received: from [212.227.126.173] (HELO moutng.kundenserver.de) (212.227.126.173) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 20 Jul 2004 05:12:07 -0700 Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BmtTY-0003LS-00 for tomcat-dev@jakarta.apache.org; Tue, 20 Jul 2004 14:12:04 +0200 Received: from [80.146.94.3] (helo=wstst06) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1BmtTX-0007lt-00 for tomcat-dev@jakarta.apache.org; Tue, 20 Jul 2004 14:12:04 +0200 Date: Tue, 20 Jul 2004 14:14:44 +0200 From: =?ISO-8859-1?Q?G=FCnter_Knauf?= Reply-To: =?ISO-8859-1?Q?G=FCnter_Knauf?= To: tomcat-dev@jakarta.apache.org Subject: Re: port number at runtime Message-ID: References: <20040720063317.75012.qmail@web20608.mail.yahoo.com> X-Mailer: AK-Mail 3.5 [ger] (registered, single user license) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a225162a7e3989e32fc0179cc40f448d X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, > It will be very usefull if the port number on which > the SSL and Http non-ssl ports are running, is > available runtime. (Ex:- 8080 and 8443). > Is it possible? > The "int getPort()" method of the CoyoteConnector > class returns the port number but its not accessible > at runtime. If there is a "sendRedirect()" method in > some jsp, where one wants to redirect from http to say > https, then the port number must be known in advance. > So there is a need for such an API. request.getServerPort() see the jsp snoop example. Guenter. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org