You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2003/10/09 01:00:16 UTC
[WIKI-UPDATE] InputModules GetTogether2003Notes Thu Oct 9 01:00:16 2003
Page: http://wiki.cocoondev.org/Wiki.jsp?page=InputModules , version: 24 on Wed Oct 8 22:41:22 2003 by TonyCollen
+ ----
+ !!RequestURIModule
+
+ Returns the URI of the request. Specifically:
+
+ {{{
+ String uri = ObjectModelHelper.getRequest(objectModel).getSitemapURI();
+ }}}
+
+ __cocoon.xconf usage__:
+ {{{
+ <input-modules>
+ ...
+ <component-instance
+ class="org.apache.cocoon.components.modules.input.RequestURIModule"
+ logger="core.modules.input"
+ name="request-uri"/>
+ ...
+ </input-modules>
+ }}}
+
+ __Note__: This component is not declared in {{cocoon.xconf}} by default. You must manually add it.
+
+ __Example Sitemap Usage__:
+
+ {request-uri:requestURI}
+
+ This is how you would use the module most of the time, since the module only returns one item, the Request URI.
+
Page: http://wiki.cocoondev.org/Wiki.jsp?page=GetTogether2003Notes , version: 16 on Wed Oct 8 22:35:57 2003 by 217.136.142.182