2 Replies Latest reply: May 2, 2011 1:38 PM by 802418 RSS

    deployJava.js and HTTPS Problem

    843802
      I'm using the following code for my applet:
      <script src="https://www.java.com/js/deployJava.js" type="text/javascript"></script>
      <script type="text/javascript">
        var attributes = {
          codebase:'.',
          code:'com.myclass.class',
          archive:'/applets/myprogram.jar',
          width:715,
          height:340}; 
        var parameters = {
          java_arguments:'-Djnlp.packEnabled=true', 
          locale:'en_US', 
          systemVersion:'${settings.systemVersion}', 
         }; 
        var version = '1.6'; 
        deployJava.runApplet(attributes, parameters, version);
      </script>
      The applet is hosted on https://mysite.com/myfile.jsf, when a user that has never had Java installed on his machine goes to my applet page it takes him to the Sun Java download page. After wards the user is taken to:
      http://https//mysite.com/myfile.jsf

      This is obviously an invalid link and instead should go back to the original URL. This does not happen and works correctly if the server is using http instead of https. Any ideas on how this can be fixed?