Re: T5: retrieve user defined parameter at start of Tapestry

2007-10-04 Thread Christian Köberl POI
Hello Angelo! Angelo Chen wrote: > > I tried to do following, but does not work: > 1. i added a param in the web.xml: > > tapestry.app-package > org.test > > test > myparam > > You have to define each context parameter seperately:

Re: T5: retrieve user defined parameter at start of Tapestry

2007-10-04 Thread Angelo Chen
Hi Chris, I tried to do following, but does not work: 1. i added a param in the web.xml: tapestry.app-package org.test test myparam 2. then i tried to access it in the program: @Inject private ApplicationGlobals globals; System

Re: T5: retrieve user defined parameter at start of Tapestry

2007-10-04 Thread Christian Köberl POI
Angelo Chen wrote: > > I'm thinking of putting some parameters in web.xml and retrieve them when > the application starts, any hint how to do this? Thanks. > A.C. > Create a new Service, Inject the ApplicationGlobals and get the parameters out of the ServletContext in ApplicationGlobals. Chris

T5: retrieve user defined parameter at start of Tapestry

2007-10-03 Thread Angelo Chen
Hi, I'm thinking of putting some parameters in web.xml and retrieve them when the application starts, any hint how to do this? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-retrieve-user-defined-parameter-at-start-of-Tapestry-tf4565342.html#a13031181 Sent from the Ta