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.
Created May 7, 2012
Joe Millionaire
request.getServerName()
request.getRequestURI()
if (!request.isSecure()) { ... switch to SSL }Take a look at the following methods:
request.getServerName()
request.getRequestURI()