cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Pass a request paramter to a custom generator
Date Tue, 05 Apr 2005 11:46:54 GMT
Mattom wrote:
> hi all !
> 
> Sorry if i missed some documentation, but I after spending an hour on trial
> and error...
> 
> How do i pass a request parameter to a custom generator in a pipeline ?
> 
> I tried (see schnirkel and schnirkel2), for a link that is:
> viewGeneric.dhtml?xfacename=testit
> 
>         <map:match pattern="dynamic_content/viewGeneric.dhtml">
>           <map:generate type="XFace">
>             <map:parameter name="XFaceName" value="Versicherungsdaten" />
>             <map:parameter name="use-request-parameters" value="true"/>
>             <map:parameter name="schnirkel" value="{xfacename}" />
>             <map:parameter name="schnirkel2" value="{request:xfacename}" />
>           </map:generate>

Er. Does your generator have a setup method? Does that get parameters?

I think you'll find those parameters in the hashmap passed to your setup 
method.

Regards, Upayavira

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


Mime
View raw message