tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: HTTPS --->> HTTP ?
Date Thu, 01 May 2003 18:24:46 GMT


Mufaddal Khumri wrote:

> Now after the initial login, I do not want to use HTTPS .. just HTTP.  I 
> would like to know suggestions / best ways to do this ??
> 
> I could specify the complete URL in the redirect, but that would tie me 
> with the name of the server.

You can specify an absolute URL in the redirect that is built by 
introspecting the HttpServletRequest for the domain name.  This gives 
you the absolute URL but does not tie you to the name of a particular 
server.

String absUrl = "http://" + request.getServerName() + "/etc";



Erik


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


Mime
View raw message