Google is your friend,
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String)
You can get the URL with a method in the HttpServletRequest class,
getRequestURL(), substitute "https" for "http" in there and redirect to that
page w
Hi Tony,
Thanks for the reply. I use an interceptor to check the HttpServletRequest's
isSecure() method in order to determine it if is secure or not. I've never
used the HttpServletResponse object and I'm not sure how to redirect to the
same address but with https. The redirecting won't be t
It may be an ugly hack, but it has worked for some of my actions. If you
return null instead of the action name to be invocated, you can use a
response object to send information directly to the user. The
HttpServletRequest object has method isSecure() which you can use to
determine whether the re
Hi All,
I've installed SSL on my JBoss container (it works) and have created an
interceptor that checks that the requests to my web app are secure (using
https). I would like to redirect all non-secure requests to use ssl and have
https in the address. How can this be done? I'm not sure how
4 matches
Mail list logo