I know I can point to files inside a .jar file and display them using
URL's such as:

jar:http://www.visi.com/~hoju/assets/resources/resources_test.jar!/images/apache_pb.gif

and

jar:file:///C:/resources_test.jar!/images/apache_pb.gif


However, this is less than useful when one wants to be able to move
the page and the jar from location to location.  It would entail
re-editing the html file to change the URL because it has to be fully
qualified.

My question is, is there a way to point to a resoruce inside a .jar
archive in a relative way.  For instance, you can point to an image on
the file system like this:

<img src="./assets/images/apache_pb.gif">

Why can't you do a similar thing with the same resource inside a .jar
archvie:

<img
src="jar:./assets/resources/resources_test.jar!/images/apache_pb.gif">


Is this at all possible???

Jake

Reply via email to