You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2002/12/26 15:07:26 UTC

cvs commit: xml-forrest/src/resources/conf cocoon.xconf

jefft       2002/12/26 06:07:26

  Modified:    src/resources/conf cocoon.xconf
  Log:
  Add a mapping from old {context:context} inputmodule syntax to new {request:contextPath}, thus delaying the day of reckoning when we break everyone's custom sitemaps
  
  Revision  Changes    Path
  1.9       +14 -1     xml-forrest/src/resources/conf/cocoon.xconf
  
  Index: cocoon.xconf
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/cocoon.xconf,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- cocoon.xconf	26 Dec 2002 08:33:12 -0000	1.8
  +++ cocoon.xconf	26 Dec 2002 14:07:25 -0000	1.9
  @@ -464,7 +464,20 @@
   	     <input-module name="request-attr"/>
   	     <input-module name="session-attr"/>
   	     <input-module name="defaults"/>
  -	  </component-instance>
  +       </component-instance>
  +
  +
  +       <!--
  +       For backwards-compat: interpret {context:context} as
  +       {request:contextPath}
  +       -->
  +       <component-instance
  +         class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
  +         logger="core.modules.mapper" name="context">
  +         <input-module name="request"/>
  +         <suffix>Path</suffix>
  +       </component-instance>
  +
   	  
      </input-modules>