cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: Zip File Generator
Date Fri, 07 Mar 2003 13:05:19 GMT
Bertrand Delacretaz wrote:

>
> Le Vendredi, 7 mars 2003, à 09:41 Europe/Zurich, Upayavira a écrit :
>
>>> .... With the protocol, it shows you how to
>>
>> add a protocol to Cocoon of the form:
>>
>> zip://financenews.xml@http://www.newserver.com/news_2001.zip
>> or
>> zip://people/matthew.jpg@pictures.zip
>
>
> There is a jar: protocol (or Source?) in Cocoon already, search for 
> "jar:" in http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html 
> for an example.
> As JARs and ZIPs share the same physical format, it should work for 
> ZIP files as well.


The JDK natively suppors the "jar:" protocol with URLs of the form 
"jar:<url>!/<entry>"(see [1]) and as such is available in Cocoon.

However the <url> part has to be an URL understood by the JDK (e.g. 
"file:", "http:", etc), and therefore you cannot use the fancy Cocoon 
protocols such as "cocoon:" or "context:".

Hope this helps,
Sylvain

[1] http://java.sun.com/j2se/1.3/docs/api/java/net/JarURLConnection.html

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message