I want to make a...

I want to make a function: user in login page, a check box to enable or disable the ssl, when the user enable it , the page will reload and connect thought https, when the user disable it , the page will reload and connect thought http.
I want to make it by HttpServletResponse.sendRedirect, but I failed, it will cause a EOF error.
How Can I make it? Thanks~!

I don’t know how to fix your actual issue, I just wanted to say that there is absolutely no reason why you would not want to use SSL in your app. I would remove the non-SSL option completely.

We want to give user to choose SSL or not.