Apache » Cocoon »

  Cocoon Core
      2.2
   homepage

Cocoon Core 2.2

SimpleSelector

Summary

A very simple selector that operates on string literals, useful especially in conjunction with input modules.

Basic information

Component typeSelector
Cocoon blockcore
Java classorg.apache.cocoon.selection.SimpleSelector
Name in Sitemap
Cacheable

Documentation

Usage example:

<map:selector name="simple" src="org.apache.cocoon.selection.SimpleSelector"/>

  <map:select type="simple">
    <map:parameter name="value" value="{request:method}"/>
    <map:when test="GET">
            ...
  </map:when>
  <map:when test="POST">
            ...
  </map:when>
  <map:when test="PUT">
            ...
  </map:when>
  <map:otherwise>
            ...
  </map:otherwise>
</map:select>