dcsimg

I want to redirect users to a secure site. Below is serverside code written in ASP. I would like to know how I can do the same in JSP.

Joe Millionaire

if (!request.isSecure())
{
   ... switch to SSL
}
Take a look at the following methods:
request.getServerName()
request.getRequestURI()