Leszek Gawron schrieb:
> Carsten Ziegeler wrote:
>> Leszek Gawron schrieb:
>>> What do you think about exposing cocoon properties in jxtemplate via:
>>>
>>> ${cocoon.settings.getProperty( 'property-name' )}
>>> or
>>> ${cocoon.settings.propertyName}
>>>
> just to be sure: is this the proper way to obtain current Settings?
>
> final Settings settings =
> (Settings)EnvironmentHelper.getCurrentProcessor().getBeanFactory().getBean(Settings.ROLE);
>
Yes - you should check if getCurrentProcessor() returns null.
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/