A Cocoon Sitemap component that manipulates runtime parameters based on the request and application state. The results of the manipulation are available to other site map components.

Actions are useful for:

Also seems very similar to the Model part of the standard Model 2 MVC set-up. In fact Generators (particularly XSP pages) can be used to fill the Model role for a particular request. Generators fit the role better however.

For a more apt MVC design, check out Flow Script (Flow or WhatIsFlow).

Declaring Actions

Actions are declared as follows:

<map:action name="add-employee"
<map:action name="locale"
<map:action name="request"
<map:action name="form-validator"

Built-in Actions

Cocoon has several built-in Actions

Action (last edited 2009-09-20 23:41:21 by localhost)