From: "Joerg Heinicke" <[EMAIL PROTECTED]>

I didn't know it but I saw today the thread about "mounting a block at root level". So in case you missed it:

http://marc.info/?t=119202558600004&r=1&w=4

The information at that link is no longer accurate for Cocoon 2.2,
but it was close enough to help me fix my problem.

In case others would like to mount a block at the root level, the correct
procedure is to edit the file:

   myBlock1\src\main\resources\META-INF\cocoon\spring\servlet-service.xml

This file contains an element:

<bean id="mysite.com.myBlock1.service" class="org.apache.cocoon.sitemap.SitemapServlet"> <servlet:context mount-path="myBlock1" context-path="blockcontext:/myBlock1/"/>
   </bean>

To mount the block at the root level, you change the mount-path attribute in the
servlet:context element to be an empty string:

Thanks very much!

-Hugh Sparks



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to