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 <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to