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

Redirecting to a HTTPS site

Paul Richards

Joined: Jul 25, 2001
Posts: 19
I currently have the following lines of code in my servlet.
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 '' 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:

There is a section called "Other Issues" - maybe one of them is yours?
[ March 26, 2002: Message edited by: Mike Curwen ]
Paul Richards

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.
Kris Parr

Joined: Aug 13, 2001
Posts: 8
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,
I agree. Here's the link:
subject: Redirecting to a HTTPS site
jQuery in Action, 3rd edition