cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] InputModules GetTogether2003Notes Thu Oct 9 01:00:16 2003
Date Wed, 08 Oct 2003 23:00:16 GMT
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




Mime
View raw message