cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinh...@apache.org>
Subject Re: Using spring configurator (for properties) in block
Date Mon, 02 Feb 2009 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/>

you don't use the correct expression to access your properties. IIRC it
should be {global:repository.dir} in your case.

HTH

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

Mime
View raw message