You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Rosenberger <pi...@gmx.de> on 2004/04/20 15:21:54 UTC
Global parameters for custom generator
Hello!
I have developed my custom generator and now i want to pass a parameter to
all generators of this type on the sitemap.
My idea would be to define a generator this way:
<map:generators default="file">
<map:generator name="mygen" src="de.myapp.MyGenerator" >
<parameter name="configfile" value="/opt/test/test.cfg"/>
</map:generator>
</map:generators>
Can I do it this way? How can I access the value of my parameter in my java
class? I don't want to use the <map:parameter> tag, because I would have to
definie the tag in each <map:generate> element. Would not be a nice solution
in my point of view.
Thanks for your help in advance!
Regards,
Christian
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Global parameters for custom generator
Posted by Christian Rosenberger <pi...@gmx.de>.
Hello!
I have developed my custom generator and now i want to pass a parameter to
all generators of this type on the sitemap.
My idea would be to define a generator this way:
<map:generators default="file">
<map:generator name="mygen" src="de.myapp.MyGenerator" >
<parameter name="configfile" value="/opt/test/test.cfg"/>
</map:generator>
</map:generators>
Can I do it this way? How can I access the value of my parameter in my java
class? I don't want to use the <map:parameter> tag, because I would have to
definie the tag in each <map:generate> element. Would not be a nice solution
in my point of view.
Thanks for your help in advance!
Regards,
Christian
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Global parameters for custom generator
Posted by Christian Rosenberger <ch...@gmx.net>.
Sorry for double posting. Don't know, why it happens!
Thanks for the help!
Regards,
Christian
-----Original Message-----
From: Christian Rosenberger [mailto:piepermail@gmx.de]
Sent: Tuesday, April 20, 2004 3:22 PM
To: users@cocoon.apache.org
Subject: Global parameters for custom generator
Hello!
I have developed my custom generator and now i want to pass a parameter
to all generators of this type on the sitemap.
My idea would be to define a generator this way:
<map:generators default="file">
<map:generator name="mygen" src="de.myapp.MyGenerator" >
<parameter name="configfile" value="/opt/test/test.cfg"/>
</map:generator>
</map:generators>
Can I do it this way? How can I access the value of my parameter in my
java class? I don't want to use the <map:parameter> tag, because I would
have to definie the tag in each <map:generate> element. Would not be a
nice solution in my point of view.
Thanks for your help in advance!
Regards,
Christian
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl
---------------------------------------------------------------------
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