Interesting - that could help the security problem raised about sub-sitemap based cocoon hosting. Does anyone know if that is a design decision or something that may in the future get implemented?
Geoff > -----Original Message----- > From: Joerg Heinicke [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 9:50 AM > To: [EMAIL PROTECTED] > Subject: Re: Calling resources from mounted sitemaps > > > AFAIK it's only possible to use resources in the sitemap, in > which they are > declared. > > Joerg > > Geoff Howard wrote: > > I'd raise that on the dev list. What version are you using? Look in > > cocoon.xconf for which sitemap engine you're using (<sitemap > ... /> tag). > > > > Geoff > > > > > >>-----Original Message----- > >>From: Bordet, Simone [mailto:[EMAIL PROTECTED]] > >> > >>Hi, > >> > >> > >>>Did you try the cocoon pseudo-protocol? <map:call > >>>resource="cocoon://stdout"> for the root sitemap, > >>>cocoon:/stdout for one in the same sitemap. > >> > >>Tried, no luck. > >>I've tried also to setup a local resource that calls the resource > >>in the root sitemap, again no luck. > >> > >>It seems to me that resources referenced by a sub sitemap can > >>only be local to the sub sitemap, and resources in the root > >>sitemap cannot be referenced in any way, as I always get a: > >> > >>org.apache.cocoon.ProcessingException: Sitemap: resource 'stdout' > >>not found: java.lang.NoSuchMethodException: > >>org.apache.cocoon.www.file_.D_.Catalina.webapps.cocoon.simon.simon > >>_xmap.resource_stdout(org.apache.cocoon.components.pipeline.Stream > >>Pipeline, org.apache.cocoon.components.pipeline.EventPipeline, > >>java.util.List, org.apache.cocoon.environment.Environment, > >>java.lang.String, boolean) > >> > >>It seems to me that the method is always looked up locally to the > >>sub sitemap. > >> > >>It seems strange to me that resources, that are pipelines > >>"factored out" for reuse, cannot be called from a sub sitemap, I > >>must miss something very obvious. > >> > >>Anyone knows how to solve this problem ? > >> > >>Thanks > >> > >>Simon > >> > >> > >>>-----Original Message----- > >>>From: Bordet, Simone [mailto:[EMAIL PROTECTED]] > >>> > >>>Hi, > >>>I could not find a way to call resources in the root sitemap > >>>from a mounted sitemap. > >>>I have my resources defined in the root sitemap, and I'd like > >>>to call these resources from sub-sitemaps. > >>>In the sub sitemap I have a simple matcher: > >>><map:match pattern="site"> > >>> <map:call resource="stdout"/> > >>></map:match> > >>>The resource stdout is defined in the root sitemap, as it > >>>will be used by several sub sitemaps. > >>>If I move the sub sitemap in the root sitemap everything works fine. > >>>I could not find any way to make this working, but since I'm > >>>fairly new to cocoon maybe there are better ways to achieve > >>>what I'd like. > >>>I'm using Cocoon 2.0.3 and Tomcat 4.1.12. > >>>Thanks > >>>Simon > > -- > > System Development > VIRBUS AG > Fon +49(0)341-979-7419 > Fax +49(0)341-979-7409 > [EMAIL PROTECTED] > www.virbus.de > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>