You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sébastien Geindre <se...@meteo.fr> on 2007/10/12 12:04:19 UTC

global variable in C2.2

hi everybody !

who could explain the 'best practice' way to get global variable in C2.2 ?

foo.properties in META-INF/cocoon/properties
with foo=bar

how get this foo variable in :
- sitemap
- flowscript
- xsl style sheet
- own component
- ..
??

Thanks for your time.

-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




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


Re: global variable in C2.2

Posted by Sébastien Geindre <se...@meteo.fr>.
Thank you Leszek !
It's clear and simple !

Leszek Gawron a écrit :
> Sébastien Geindre wrote:
>> hi everybody !
>>
>> who could explain the 'best practice' way to get global variable in 
>> C2.2 ?
>>
>> foo.properties in META-INF/cocoon/properties
>> with foo=bar
>>
>> how get this foo variable in :
>> - sitemap
>
> use {global:foo}
>
>> - flowscript
> pass it from sitemap (maybe new object model gives access to 
> properties,  that is possible)
>
>> - xsl style sheet
> pass it from sitemap as you usually did
>
>> - own component
> use ${foo} in your applicationContext.xml that defines the component
>
>> - ..
>> ??
>>
>> Thanks for your time.
>>
>
>


-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




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


Re: global variable in C2.2

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Sébastien Geindre wrote:
> hi everybody !
> 
> who could explain the 'best practice' way to get global variable in C2.2 ?
> 
> foo.properties in META-INF/cocoon/properties
> with foo=bar
> 
> how get this foo variable in :
> - sitemap

use {global:foo}

> - flowscript
pass it from sitemap (maybe new object model gives access to properties, 
  that is possible)

> - xsl style sheet
pass it from sitemap as you usually did

> - own component
use ${foo} in your applicationContext.xml that defines the component

> - ..
> ??
> 
> Thanks for your time.
> 


-- 
Leszek Gawron                         http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.


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