I was wondering how i can force a user who has requested a page using Http to use the secure https version?
I am using Websphere 6.1 as my application server and Rad 7 as my development environment
Thanks Damien
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way that you could do this within your application rather than in the server configuration would be to use a Filter (specified in your web.xml) to check if
ServletRequest.getScheme()is ‘http’ or ‘https’, and re-direct the user to the appropriate URL (usingHttpServletResponse.sendRedirect(String url)).