cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.nl>
Subject Is it possible to use a spring bean directly in the sitemap?
Date Tue, 19 May 2009 11:47:45 GMT
Hi all,

 

Suppose I have configured a bean:

 

            <bean id="com.mycompany.repository"
class="com.mycompany.Repository">

              <property name="repositoryDir"
value="${repository.repositoryDir}" />

              <property name="xmlDir"                value="${
repository.xmlDir}" />

              <property name="imagesDir"           value="${
repository.imagesDir}" />


            </bean>

 

Is there a way so I could use this bean in the sitemap.  I would like to
be able to do something like:

 

<map:match pattern="test">

  <map:generate
src="${com.mycompany.repository:repositoryDir}/test.xml"/>

  <map:serialize type="xml"/>

</map:match>

 

Thx in advance,

Robby


Mime
View raw message