cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
Subject How to get spring beans with Cocoon Template 1.0?
Date Wed, 19 Nov 2008 10:17:08 GMT
Hi all,

I am wondering how to import a spring bean from Cocoon Template 1.0?

I would like to use an import of a spring configured bean in my jx
template. I mean I can do 
<jx:set var="helper"
value="${Packages.es.sadesi.path.Discursos(getRequest)}"/>

but then this class in not configured by spring.

Is there a way to get a spring bean?

Something like:
<jx:set var="helper" value="${Spring.myBean}"/>

TIA for any thoughts.

salu2
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la InformaciĆ³n, S.A.U. (SADESI)





Mime
View raw message