cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Reem <>
Subject sitemap and application configuration
Date Thu, 05 Mar 2009 22:02:48 GMT

we are using commons-configuration to configure our application at
runtime. Therefore I registered a XMLConfiguration as an bean in

<bean name="appConf"
	<constructor-arg type="java.lang.String">

After a little research I found out, that I can access my bean via:
wac = WebAppContextUtils.getCurrentWebApplicationContext();
configuration = (Configuration) wac.getBean("appConf");

My first questing would be, is this how I should request my beans or is
there another (prefered way) to retrieve beans?

Some of the configuration options have to be propagated into XSLTC. So I
would like to pass the options as parameters to XSLTC, but to do this, I
must access the configuration bean in the sitemap.

My second question is, whether there is a way to do it? Or which
approach should I use instead?

Any input is welcome.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message