Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

http to https how ?

Mufaddal Khumri

2004-01-12

Replies:

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.
©2008 junlu.com - Jax Systems, LLC, U.S.A.