Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirecting to a HTTPS site

 
Paul Richards
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I currently have the following lines of code in my servlet.
response.sendRedirect(response.encodeRedirectURL("https://www.XXXXX.com/pages/checkout.jsp"));
Basically, I would like to call a jsp using the Https protocol. I also require to maintain the session information without using cookies(hence the URLencoding.)
Using the above code does not work, but typing 'https://www.XXXXX.com/pages/checkout.jsp' in the browser address line does.
Please advise on a solution (should I be using a request.forward to request the page fromm the browser?
Thanks in advance
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you be a bit more specific about what is not working?

Also, check out this article: http://www.javaworld.com/javaworld/jw-02-2002/jw-0215-ssl_p.html

There is a section called "Other Issues" - maybe one of them is yours?
[ March 26, 2002: Message edited by: Mike Curwen ]
 
Paul Richards
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that.
I will check out the link later.
To be more precise, the checkout.jsp is displayed but does NOT appear to be under the secure socket Layer. There is no padlock displayed in the browser.
If I type the URL in the browser address then the padlock appears in the browser (to which I ampresuming that the page is secure).
I have set up certificates and verified that they are working.
cheers
 
Kris Parr
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,
We have also experienced similar problems to this,
in that SSL pages do not appear with the padlock.
However this only seems to be a problem on IE6. Have you tried anything below this ? When we check
the properties on the pages though they do appear to be encrypted, just not the overall frameset. The link in the reply above specifies problems with IE performing multiple redirects, perhaps this is the issue. If you sort it out let us know,
Cheers,
Kris.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic