apache > cocoon

Advanced Control Flow

Flowscript-aware Generators

The second argument to cocoon.sendPage() and cocoon.sendPageAndWait() is a context object, which can be a simple dictionary with values that need to be displayed by the page. More generally any Java or JavaScript object can be passed here, as long as the necessary get methods for the important values are provided.

The page specified by the URL is processed by the sitemap, using the normal sitemap rules.

Several Cocoon generators are provided that allow you to access the context object and inject its values into a pipeline. Currently, these are the JXTemplate Generator, JPath XSP Logic Sheet and Velocity Generator.