If you are working on Tapestry 5 you can read  this wiki  :
http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5,_Spring_and_Hibernate

Kaspar Fischer a écrit :
Hi,

The Tapestry reference,

http://static.springframework.org/spring/docs/2.0.x/reference/webintegration.html#webintegration-common

says that "[...] one can use the following code snippet to get access
to this 'business context' ApplicationContext created by the
ContextLoaderListener":

WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);

How would I do this from within a page (i.e., a subclass of BasePage)?

IIUC, a page need not have an associated servletContext. So what sort
of indirection would I use?

I am trying to get the Spring WebApplicationContext service that
(apparently) the tapestry-spring.jar,

  http://tapestry.apache.org/tapestry5/tapestry-spring/

adds. My finally goal is to load a Spring bean from a page to do
some processing.

Many thanks and sorry for the simple question (I am a Tapestry newbie!),
Kaspar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Michael Courcy
http://courcy.blogspot.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to