2 Feb 09:00
Re: Using spring configurator (for properties) in block
Reinhard Pötz <reinhard <at> apache.org>
2009-02-02 08:00:33 GMT
2009-02-02 08:00:33 GMT
Robby Pelssers wrote:
> Hi all,
>
> I read the documentation on the spring configurator. First let me
> describe the usecase. I want to develop a block which should do not
> much more then reading xml files from the filesystem. I want to use a
> property file for the sitemap of the block.
>
>
>
> Example:
>
> <map:generate src="file://${repository.dir.flyerdefinitions}/{1}.xml
> <file:///\\$%7brepository.dir.flyerdefinitions%7d\%7b1%7d.xml>" />
>
>
>
> So I created following property file in
> /META-INF/cocoon/properties/application.properties
>
>
>
> repository.dir=D:/_testdata_
>
> repository.dir.released=${repository._dir_}/XML Repository
>
> repository.dir.flyerdefinitions=${repository._dir_.released}/Flyer
> Definitions
<snip/>
(Continue reading)
RSS Feed