Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 94808 invoked from network); 22 Sep 2005 13:59:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2005 13:59:38 -0000 Received: (qmail 73150 invoked by uid 500); 22 Sep 2005 13:59:37 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 73125 invoked by uid 500); 22 Sep 2005 13:59:37 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 73113 invoked by uid 99); 22 Sep 2005 13:59:37 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [207.7.158.203] (HELO cocoon.zones.apache.org) (207.7.158.203) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 06:59:35 -0700 Message-ID: <9943674.1127397365272.JavaMail.daisy@cocoon.zones.apache.org> Date: Thu, 22 Sep 2005 13:56:05 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Created: Action FAQs Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N A new document has been created. http://cocoon.zones.apache.org/daisy/legacydocs/715.html Document ID: 715 Branch: main Language: default Name: Action FAQs Document Type: Document Created: 9/22/05 1:55:51 PM Creator (owner): Helma van der Linden State: publish Parts ===== Content ------- Mime type: text/xml Size: 1304 bytes Content:

What is an Action?

An Action is a sitemap component that manipulates runtime parameters based on request and application state. An Action's result is available in the sitemap as map of name/value pairs. Detailed information on actions may be found in Creating and Using Actions.

Why does Cocoon return an error when I add an action to a pipeline?

The pipeline was working fine before the action was added. After the change, Cocoon seems unable to find the file specified in the variable that is returned by the matcher.

<map:match pattern="*">
  <map:act type="validate-session">
    <map:generate type="serverpages" src="{../1}.xsp"/>
  </map:act>
  <map:serialize/>
</map:match>

Please note in the above example the "../1".

Map objects returned from matchers and actions are organised hierarchically. Therefore, old map objects are not replaced by new ones, such as the map objects returned by the validate-session action above. Because older map objects are still accessible through a path expression, new ones are accessed differently. Here "../1" references key ( or "variable") "1" in the next to last Map.

Collections =========== The document belongs to the following collections: legacydocs