applet problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nick Wedd

    #1

    applet problem

    Here is a test page

    which uses a Java applet to take a .DjVu format file and display the
    image which it encodes. The page is simple html, you can view its
    source.

    When I started using this applet, it worked on my system with
    Mozila/Netscape, Mozilla/Firebird, Mozilla/Firefox, and Internet
    Explorer, all running on my WindowsXP system. I was warned that the
    applet worked with only some Mac browsers.

    However, now I find that on my system, I only see the image with
    Mozila/Netscape. With Mozilla/Firebird, Mozilla/Firefox, and Internet
    Explorer, the image does not appear. I am puzzled as to what has caused
    the change. My guess is that it has something to do with increased
    security settings - but I can't find where the actual change has
    happened, nor how to reverse it.

    Can anyone here advise?

    Nick
    --
    Nick Wedd nick@maproom.co .uk
  • SPG

    #2
    Re: applet problem


    "Nick Wedd" <nick@maproom.c o.uk> wrote in message
    news:tMfAjnQ4cI EDFAjw@maproom. demon.co.uk...[color=blue]
    > Here is a test page
    > http://www.maproom.org/maps/historic...886/testj.html
    > which uses a Java applet to take a .DjVu format file and display the image
    > which it encodes. The page is simple html, you can view its source.
    >
    > When I started using this applet, it worked on my system with
    > Mozila/Netscape, Mozilla/Firebird, Mozilla/Firefox, and Internet Explorer,
    > all running on my WindowsXP system. I was warned that the applet worked
    > with only some Mac browsers.
    >
    > However, now I find that on my system, I only see the image with
    > Mozila/Netscape. With Mozilla/Firebird, Mozilla/Firefox, and Internet
    > Explorer, the image does not appear. I am puzzled as to what has caused
    > the change. My guess is that it has something to do with increased
    > security settings - but I can't find where the actual change has happened,
    > nor how to reverse it.
    >
    > Can anyone here advise?
    >
    > Nick
    > --
    > Nick Wedd nick@maproom.co .uk[/color]

    Your problem is that you are trying to download the image via the applet
    from a different server than the one the applet is locate.
    Applets may only ever open connections to the server they originate from for
    security reasons.

    Two options:

    1. Keep the image on your local server (with the applet), or even embed it
    in the jar file
    2. Sign your applet.

    HTH,

    Steve


    Comment

    • Nick Wedd

      #3
      Re: applet problem

      In message <1AhQe.97725$G8 .19382@text.new s.blueyonder.co .uk>, SPG
      <steve.goodsell @nopoo.blueyond er.co.uk> writes[color=blue]
      >
      >"Nick Wedd" <nick@maproom.c o.uk> wrote in message
      >news:tMfAjnQ4c IEDFAjw@maproom .demon.co.uk...[color=green]
      >> Here is a test page
      >> http://www.maproom.org/maps/historic...886/testj.html
      >> which uses a Java applet to take a .DjVu format file and display the image
      >> which it encodes. The page is simple html, you can view its source.
      >>
      >> When I started using this applet, it worked on my system with
      >> Mozila/Netscape, Mozilla/Firebird, Mozilla/Firefox, and Internet Explorer,
      >> all running on my WindowsXP system. I was warned that the applet worked
      >> with only some Mac browsers.
      >>
      >> However, now I find that on my system, I only see the image with
      >> Mozila/Netscape. With Mozilla/Firebird, Mozilla/Firefox, and Internet
      >> Explorer, the image does not appear. I am puzzled as to what has caused
      >> the change. My guess is that it has something to do with increased
      >> security settings - but I can't find where the actual change has happened,
      >> nor how to reverse it.
      >>
      >> Can anyone here advise?
      >>
      >> Nick
      >> --
      >> Nick Wedd nick@maproom.co .uk[/color]
      >
      >Your problem is that you are trying to download the image via the applet
      >from a different server than the one the applet is locate.
      >Applets may only ever open connections to the server they originate from for
      >security reasons.
      >
      >Two options:
      >
      >1. Keep the image on your local server (with the applet), or even embed it
      >in the jar file
      >2. Sign your applet.[/color]

      Thank you very much for your answer!

      The image and the applet are located on the same server, where the html
      also is:
      codebase="../../../../java"
      <param name="data" value='0000.djv u'>

      However, there was something located on a different server:
      <param name="image" value="http://javadjvu.source forge.net">
      This is not the image, it is just an html page. I was recommended to
      put this line there by someone connected with the applet, who said it
      would speed up the operation of the applet; he said its actual content
      was irrelevant. Anyway, I have now replaced this line by
      <param name="image" value="dummy.ht ml">
      where dummy.html is a page located on the same server.
      All my browsers have started displaying the image correctly.

      Nick
      --
      Nick Wedd nick@maproom.co .uk

      Comment

      Working...