Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Another follow up to Servlets and SSL  RSS feed

 
Tod Checker
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I redirect from a servlet which uses SSL to a servlet which does not and avoid the warning message?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, you don't.
The warning mesage is there to warn users that this very thing is happening, so that they know future submissions and clicks are not secure.
 
Tod Checker
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do commercial sites do it? I noticed that hotmail does a https to a http redirection without any warning messages.
 
Tod Checker
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came up with a solution. Its crude but it works. I created an html page in between the https and http page. The html page is called by the https and refreshes after 0 seconds to the http, this avoids the warning message.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!