hmmm... I tried to make this work with an image and nothing showed up.
I tried it with the following HTML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"
xml:lang="en-US">
<head>
<title>Testing :jar protocol: loading resources out of jar
files</title>
</head>
<body>
<h1>The image below is being loaded from a .jar archive, not directly
off the filesystem!!!</h1>
<img
src="jar:http://www.visi.com/~hoju/assets/resources/resources_test.jar/images/apache_pb.gif"
alt="Image loaded from jar file" />
</body>
</html>
I made sure the jar file exists where I am pointing at in the URL and
make sure the image exists in the "images/" path inside the jar file.
Does it depend on the server? Anything I am doing wrong here????
Also, like Boris, I'd be very interested n finding out if this could
work with relative paths... meaning omitting the protocol and site
from the beginning of the URL and just referencing a local jar
archive. Would this still work???
Jake
On Thu, 30 Aug 2001 10:01:56 -0400, Neil Deakin <[EMAIL PROTECTED]>
wrote:
>The following should work.
>
><img src="jar:http://www.yourdomain.com/some.jar!/images/someImage.png">
>
>/ Neil
>
>
>Boris Savov wrote:
>> Hello,
>> how could I or could I store some files in one single jar file ...
>> for example java script files and image files
>> and than use in an HTML (load from the net..not installed in chrome)
>> something like this:
>> <script src="some.jar!/scripts/someScript.js"></script>
>> bla bla
>> <img src="some.jar!/images/someImage.png"></script>
>>
>> best regards
>>
>>
>>
>>