You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jos Snellings <Jo...@pandora.be> on 2009/06/10 13:17:34 UTC

cocoon-3.0 : request and sitemap parameters

Hi,

I could not figure out how to access request and sitemap parameters from
a Cocoon 3 generator.
The generator is part of a pipeline:

public class StuffGenerator extends AbstractGenerator  implements
CachingPipelineComponent {
    
String language = "en";


The pipeline:


     <map:match pattern="stuff/{language}">
        <map:generate type="stuff" language="{map:language}">
          <map:parameter name="lang" value="map:language"/>
        </map:generate>
        <map:transform src="presentation/showstuff.xslt"/> 
        <map:serialize type="xhtml" />
      </map:match>

There surely is an easy way, but I must overlook it.
Any suggestions?

Thank you so much,
Jos Snellings


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org