Just create a filter (mapping it to /* for example so it gets applied to all
requests), test for a secure connection with request.isSecure(), and if it
isn't, redirect using response.sendRedirect.
Martin
Faine, Mark wrote:
I know I can redirect HTTP to HTTPS by adding:
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
to my web.xml but the problem is that this does not redirect when someone
just goes to a directory path. I would like
http://servername/
to redirect to
https://servername/
Thanks,
-Mark
---------------------------------------------------------------------
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]