Java Mailing List Archive

http://www.junlu.com/

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

RE: http to https how ?

Bruno Melloni

2004-01-13


There are many theories out there. From personal experience, the simplest/cleanest way to do it is with Struts + the sslext plugin. But even then, don't expect it to be trivial. Run some Google searches to find components, tutorials, articles, etc. Those things should make your life a little easier.

-----Original Message-----
From: ext Mufaddal Khumri [mailto:mufaddal@(protected)]
Sent: Monday, January 12, 2004 6:12 PM
To: Tomcat Users List
Subject: http to https how ?


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)



©2008 junlu.com - Jax Systems, LLC, U.S.A.