tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saugata ghosh <saugataghosh_2...@yahoo.com>
Subject Re: port number at runtime
Date Wed, 21 Jul 2004 04:05:43 GMT
request.getServerPort()
-Thanks, but this returns the port number of the
current request port.
But my problem is, say the request is for http: and I
want to redirect to https:/.../somefile.jsp. - then ?
Basically what is required is a method that will
return the port number set in the conf/server.xml
file.

-Saugata

--- GŁnter_Knauf <fuankg@apache.org> wrote:
> 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
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message