This action simply checks to see if a given resource exists. It checks
whether the specified in the src attribute source exists or not.
The action returns empty Map if it exists, null otherwise.
Instead of src attribute, source can be specified using
parameter named 'url' (this is old syntax).
In order to differentiate between files and directories, the type can be specified
using the parameter 'type' (<map:parameter name="type" value="file"/> or
<map:parameter name="type" value="directory"/>). The parameter 'type' is optional.
Note:
org.apache.cocoon.selection.ResourceExistsSelector should be preferred to this component, as the semantics of a Selector better
match the supplied functionality.
|