In order to understand how a Cocoon block works we need to take a look at
This file is a spring bean configuration file in which our sitemap servlet is configured. It describes we want to create an instance of the class 'org.apache.cocoon.sitemap.SitemapServlet' and name it 'com.ciber.cocoontutorial.service'.
The mount-path means that any request starting with '/cocoontutorial' will be dispatched to this servlet. The nice thing about a sitemap servlet is that we configure it's behaviour without ever having to write a single line of code. The configuration file is called sitemap.xmap and is located at
Since I want to explain everything step-by-step I stripped everything from the sitemap.xmap which
was used for the sample. We're gonna create a much more advanced application so get ready for some action.
In the next article we'll start with explaining some sitemap components.