permaculture playing cards*
The moose likes Servlets and the fly likes Redirecting  to a HTTPS  site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirecting  to a HTTPS  site" Watch "Redirecting  to a HTTPS  site" New topic
Author

Redirecting to a HTTPS site

Paul Richards
Greenhorn

Joined: Jul 25, 2001
Posts: 19
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

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Jul 25, 2001
Posts: 19
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

Joined: Aug 13, 2001
Posts: 8
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Redirecting to a HTTPS site
 
Similar Threads
Using SSL with JSP pages
j2eecertficate.com question
WebSphere Application Server
two applications in one server
SSL