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

problem redirecting from https to http  RSS feed

 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I redirect from https to http

I have used the following code to redirect from https to http but does not help..
The browser says "The page isn't redirecting properly"

My App server is Tomcat 7
 
Tim Moores
Saloon Keeper
Posts: 3511
77
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Control flow decisions like this shouldn't happen in a JSP; they should be made in a servlet. It's possible that some white space is sent as response before this code ever executes, making a proper redirect impossible.
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Control flow decisions like this shouldn't happen in a JSP; they should be made in a servlet.

Or a filter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!