Thanks Benny, i've tried that too, but it does not work. The context is null.
Here's how i do it: @Inject private org.apache.tapestry5.services.Context context; Should that work? Stefan Am 30.10.2009 um 23:50 schrieb Benny Law:
Hi Stefan,Try injecting org.apache.tapestry5.services.Context into your service anduse its getInitParameter() method to retrieve your context parameters. Regards, Benny Law On Fri, Oct 30, 2009 at 3:56 PM, Stefan <ste...@wammel.com> wrote:Hi,is there a way to get access to the ServletContext inside a service bean?I like to configure some parameters within the web.xml which i need in someservices. How can i retrieve these parameters? Injecting "ApplicationGlobals" does not work. Where is my mistake? Thanks in advance. Stefan
smime.p7s
Description: S/MIME cryptographic signature