SimpleSelector

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

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>

SimpleSelector (last edited 2009-09-20 23:40:12 by localhost)