One of the Built In Logicsheets in Cocoon

The Modules] Input Logicsheet is responsible for providing access to the Input [http://xml.apache.org/cocoon/userdocs/concepts/modules.html operations that can be carried out on the HTTP Request currently being serviced by Cocoon. Contains three tags, which just call the similar methods on an InputModule.

  • <input:get-attribute/>
  • <input:get-attribute-values/>
  • <input:get-attribute-names/>

Apart from a mandatory attribute module the element tags should behave very much like the same element tags from XSPRequest

References to modules are obtained at first access and are released at the end of the page. Consecutive accesses reuse the cached references.

Only drawback is that default values are limited to java.lang.String.

It is based on logicsheet-utils.xsl so it takes <input:param/> for any parameter.

An example can be found on the concepts document for modules here.

  • No labels