http to https how ? 2004-01-12 - By David Evans
Back I do this:
if (! request.isSecure()) { response.sendRedirect("https://www.yourdomain.org/your.jsp?"); }
dave
On Mon, 2004-01-12 at 19:11, Mufaddal Khumri wrote: > 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.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|