Apache » Cocoon »

  Cocoon Core
      2.2
   homepage

Cocoon Core 2.2

ResourceExistsAction

Summary

This action simply checks to see if a resource identified by the src sitemap attribute exists or not. The action returns empty Map if resource exists, null otherwise.

Basic information

Component typeAction
Cocoon blockcore
Java classorg.apache.cocoon.acting.ResourceExistsAction
Name in Sitemap
Cacheable

Documentation

Instead of src attribute, source can be specified using
parameter named url (this is old syntax, should be removed soon).

NOTE:
{@link org.apache.cocoon.selection.ResourceExistsSelector}
should be preferred to this component, as the semantics of a Selector better
matches the supplied functionality.