sorry, forget the ? after the url, that is:

if (! request.isSecure()) {
    response.sendRedirect("https://www.yourdomain.org/your.jsp";);
}




On Mon, 2004-01-12 at 23:13, David Evans wrote:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to