Action FAQs
http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Main

FAQs
Index

Getting Started
Install
Configure
CVS

Using
Configure C2
Databases
XSP
XSLT
Debugging

Sitemap
Sitemap
Generators
Transformers
Serializers
Matchers
Selectors
Actions
Aggregators

Questions
Answers
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.

How can I add my FAQ to this document?

Follow the instructions found in How-To Author an FAQ.

How can I suggest improvements to existing FAQs?

Given the rapid pace of change with Cocoon, many individual FAQs quickly become out-of-date and confusing to new users. If you have the relevant knowledge, please consider updating other FAQs on this page for technical errors. If you see a few typos, please consider fixing them too. Follow the instructions found in How-To Author an FAQ.

Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.