C
Chris Berg
In my SIGNED applet, I try to get an image:
String pImage = "/images/myimage.gif";
Image image = getImage(getDocumentBase(), pImage);
In this particular case, the document base is
https://doc_domain/path/
(notice the 's' in https)
The codebase is a different domain:
http://code_domain/path/ (no 's')
Now, when the applet runs, something quite unexpected happens: the
applet first tries to fetch the image from the server at
code_domain!!!. In its web log, i can see that it has tried to fetch
http://code_domain/images/myimage.gif
then, a second later, it fetches
http://doc_domain/images/myimage.gif
It has no effect to actually put an image file on the codebase server.
The image eventually diplayed is the right one - the one from the
doc_domain server.
I've tried it on several Java versions, and it appears to not do it on
versions 1.3 or lower, though I'm not quite sure about it.
Chris
String pImage = "/images/myimage.gif";
Image image = getImage(getDocumentBase(), pImage);
In this particular case, the document base is
https://doc_domain/path/
(notice the 's' in https)
The codebase is a different domain:
http://code_domain/path/ (no 's')
Now, when the applet runs, something quite unexpected happens: the
applet first tries to fetch the image from the server at
code_domain!!!. In its web log, i can see that it has tried to fetch
http://code_domain/images/myimage.gif
then, a second later, it fetches
http://doc_domain/images/myimage.gif
It has no effect to actually put an image file on the codebase server.
The image eventually diplayed is the right one - the one from the
doc_domain server.
I've tried it on several Java versions, and it appears to not do it on
versions 1.3 or lower, though I'm not quite sure about it.
Chris