You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brian Delahunty <bd...@tssg.org> on 2003/07/02 12:15:48 UTC

Passing info to a Generator

Hey All,

I was just wondering how I would go about passing a string to a generator from a site map?

Brian

Re: Passing info to a Generator

Posted by Lionel Crine <cr...@4dconcept.fr>.
To send a parameter from the sitemap use  the <map: parameter/> element.

Lionel


At 11:55 02/07/2003 +0100, you wrote:
>Thanks for the info..
>
>In the pipeline.. How would I pass thes parameters to the generator?
>
>B
>
>
>----- Original Message -----
>From: "Reinhard Pötz" <re...@gmx.net>
>To: <us...@cocoon.apache.org>
>Sent: Wednesday, July 02, 2003 11:48 AM
>Subject: RE: Passing info to a Generator
>
>
> > Implement the method setup:
> >
> > public void setup(SourceResolver resolver, Map objectModel, String src,
> > Parameters par) {
> >    par.getParameter( "paramName", "defaultValue" );
> > }
> >
> >
> > Reinhard
> >
> > -----Original Message-----
> > From: Brian Delahunty [mailto:bdelahunty@tssg.org]
> > Sent: Wednesday, July 02, 2003 12:16 PM
> > To: users@cocoon.apache.org
> > Subject: Passing info to a Generator
> >
> >
> > Hey All,
> >
> > I was just wondering how I would go about passing a string to a
> > generator from a site map?
> >
> > Brian
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


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


Re: Passing info to a Generator

Posted by Brian Delahunty <bd...@tssg.org>.
Thanks for the info..

In the pipeline.. How would I pass thes parameters to the generator?

B


----- Original Message ----- 
From: "Reinhard Pötz" <re...@gmx.net>
To: <us...@cocoon.apache.org>
Sent: Wednesday, July 02, 2003 11:48 AM
Subject: RE: Passing info to a Generator


> Implement the method setup:
>
> public void setup(SourceResolver resolver, Map objectModel, String src,
> Parameters par) {
>    par.getParameter( "paramName", "defaultValue" );
> }
>
>
> Reinhard
>
> -----Original Message-----
> From: Brian Delahunty [mailto:bdelahunty@tssg.org]
> Sent: Wednesday, July 02, 2003 12:16 PM
> To: users@cocoon.apache.org
> Subject: Passing info to a Generator
>
>
> Hey All,
>
> I was just wondering how I would go about passing a string to a
> generator from a site map?
>
> Brian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


RE: Passing info to a Generator

Posted by Reinhard Pötz <re...@gmx.net>.
Implement the method setup:

public void setup(SourceResolver resolver, Map objectModel, String src,
Parameters par) {
   par.getParameter( "paramName", "defaultValue" );
}


Reinhard

-----Original Message-----
From: Brian Delahunty [mailto:bdelahunty@tssg.org] 
Sent: Wednesday, July 02, 2003 12:16 PM
To: users@cocoon.apache.org
Subject: Passing info to a Generator


Hey All,

I was just wondering how I would go about passing a string to a
generator from a site map?

Brian


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