• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Redirecting to a HTTPS site

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic