tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mufaddal Khumri <mufad...@wmotion.com>
Subject http to https how ?
Date Tue, 13 Jan 2004 00:11:48 GMT
Hi,

Have a page First.jsp

When a user comes to http://my.domain.com/First.jsp ... I would like to 
redirect him or her to https://my.domain.com/First.jsp.

How do I do this on my jsp ? I tried <% 
request.redirect("https://my.domain.com/First.jsp") %> , but i get an 
exception saying

cannot resolve symbol
symbol  : method redirect (java.lang.String)
location: interface javax.servlet.http.HttpServletResponse
					response.redirect(path);

Thanks.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message