File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Supressing the message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Supressing the message" Watch "Supressing the message" New topic

Supressing the message

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
I have a page where in there are http and https links and when ever i click on any link i get the following msg

This page contains both secure and nonsecure items.
Do you want to display the nonsecure items?

How do I supress this message from displaying on the browser??

THx in advance
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Unless I am mistaken (Which is certainly a possibility!), I don't believe you can suppress this message from the server side, as it is a setting on the browser client itself.

This is just a guess at a possible solution, as I did not have time to test it, but have you tried making all of the links on your page http links, and using a controller to redirect the client to https links as needed.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Yup, it is up to the user to set up his browser to not display that message.
I agree. Here's the link:
subject: Supressing the message
It's not a secret anymore!