cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <Jos.Snelli...@pandora.be>
Subject cocoon-3.0 : request and sitemap parameters
Date Wed, 10 Jun 2009 11:17:34 GMT
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


Mime
View raw message