This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 3828
79
  • 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: 21047
85
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!