cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [C2] Actions Purpose and Use
Date Mon, 12 Feb 2001 16:18:29 GMT
Giacomo Pati wrote:
> 
> You can arrage actions in an action set. The sitemap calls the
> act method of those actions in the sequence they are defined in the
> action set. It is possible to signal to the sitemap to
> call an antion only if the Environments getAction method returns
> a String identical to the value supplied with an action attribute.
> In the current implementation of the HttpEnvironment the value
> returned by the getAction methos is determined by a http parameter
> called "cocoon-action". So far let's have a look at at possible
> action set definition:
> 
>  <map:action-sets>
>   <map:action-set name="shop-actions">
>    <map:act type="session-invalidator"  action="logoff"/>
>    <map:act type="session-validator"/>
>    <map:act type="cart-add"             action="addItem"/>
>    <map:act type="cart-remove"          action="removeItem"/>
>    <map:act type="cart-remove-all"      action="removeAll"/>
>    <map:act type="cart-update"          action="updateQty"/>
>    <map:act type="order-add"            action="addOrder"/>
>    <map:act type="order-verify"         action="verifyOrder"/>
>    <map:act type="screen-navigator"     src="{1}"/>
>   </map:action-set>
>  </map:action-sets>
> 
> And this is a possible pipeline snipped which uses this action set:
> 
>    <map:match pattern="*">
>     <map:act set="my-actions">     <--- HERE
>      <map:generate  type="serverpages" src="docs/xsp/{nextpage}.xsp"/>
>      <map:transform src="stylesheets/page2html.xsl"/>
>      <map:serialize type="html"/>
>     </map:act>
>    </map:match>

You just raised another issue, one that I haven't seen referenced, but
looks very interesting:

    <map:act type="screen-navigator"     src="{1}"/>

How does the "screen-navigator" action get the "src" attribute?
Is that in the Parameters object, or the objectMap, or what?

Mime
View raw message