cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <>
Subject Re: cocoon
Date Thu, 07 Dec 2000 14:12:53 GMT
----- Original Message ----- 
From: "David" <>
To: <>
Sent: Thursday, December 07, 2000 7:41 AM
Subject: cocoon 

> Hi Cocoonians
> Can Cocoon  work with xml/xsp out of its directory? 
> We have an xml file in the tomcat/webapps/cocoon/  and it works.
> Now we want to move to other folder like /usr/home/intranet.  
> When  apache-tomcat serves the xml file, we only obtain the xml source, not
> interpreted by cocoon.
> What changes (to cocoon probably) we need to make?

There are two questions to help answer your question:

What version of Cocoon?

Do you mind violating the spirit of the Servlet Engine?

Basically the answer goes like this:

What you are proposing can only work in a trusted environment--
the security issues surrounding it make me shudder.  That being
said, in Cocoon 2 you would create a Generator and in Cocoon 1.x
you would create a Producer (same role) that reads from the files
OUTSIDE of the servlet environment.  The Producer must make sure
that the proper processing instructions are added, the Generator
does not have to do anything special.  In Cocoon 2, you also have
the sitemap involved, so I am not sure how you would address files
outside the Sevlet environment.  In Cocoon 1, it is totally up to

View raw message