cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <>
Subject cocoon-3.0 : request and sitemap parameters
Date Wed, 10 Jun 2009 11:17:34 GMT

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:transform src="presentation/showstuff.xslt"/> 
        <map:serialize type="xhtml" />

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

Thank you so much,
Jos Snellings

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message