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://[EMAIL PROTECTED]://www.newserver.com/news_2001.zip or zip://people/[EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]