tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sheraz Khan <Sheraz.K...@webwarecorp.com>
Subject RE: HTTPS --->> HTTP ?
Date Thu, 01 May 2003 18:30:12 GMT
True.  But is there an easy way to not "hard code" the webapp name?
Other than getting it through some properties file.

Thanks
-Sheraz

-----Original Message-----
From: Filip Hanik [mailto:mail@filip.net]
Sent: Thursday, May 01, 2003 11:28 AM
To: Tomcat Users List
Subject: RE: HTTPS --->> HTTP ?


response.sendRedirect("http://"+request.getServerName()+"/myapp/Home.jsp");

Filip

> -----Original Message-----
> From: Mufaddal Khumri [mailto:mufaddal@wmotion.com]
> Sent: Wednesday, April 30, 2003 10:42 PM
> To: Tomcat List
> Subject: HTTPS --->> HTTP ?
> 
> 
> Hi Everybody,
> 
> I have a servlet that allows a user to login using a username and 
> password. For this I use SSL set up with Tomcat.
> 
> For example:
> https://www.myserver.com/myapp/Login.jsp
> 
> Now after the user has been authenticated I use
> 
> response.sendRedirect(response.encodeRedirectURL("/myapp/Home.jsp"));
> 
> When I do this ... the browser goes to:
> https://www.myserver.com/myapp/Home.jsp
> 
> 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.
> 
> Any suggestions ?
> 
> Thanks.
> 
> 

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

---------------------------------------------------------------------
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