This Map object does not replace the previous Map object put
+ is stacked on top of it. The other Map objects are still
+ accessible through a path expression.
+
+
The above example shows how to access the next to last map
+ by prefixing the key with "../"
+
+
In addition to delivering values to the Sitemap, the Action can
also control the flow. If the action returns null
@@ -201,6 +219,9 @@
would return null the server page generator
would not be activated.
+
In other words: The statements within the
+ map:act element are only executed if the
+ action returns at least an empty Map object.
@@ -212,8 +233,16 @@
a String identical to the value supplied with an action attribute.
In the current implementation of the HttpEnvironment the value
returned by the getAction method is determined by a http parameter
- called "cocoon-action". So far let's have a look at at possible
- action set definition:
+ called "cocoon-action".
+
Above we have seen that a successfully executed action
+ returns a Map object that can be used to communicate with the
+ sitemap. In case of an action set this is similar. With action
+ sets all returned Map objects are merged into a single Map. Of
+ course a Map can contain only one value per key so that if
+ multiple actions within an action set use the same key to
+ communicate to the sitemap, only the last one "survives".
+
+ So far let's have a look at at possible action set definition: