Re: Reading context-params in T5

2009-10-01 Thread Benny Law
Thanks a lot guys! The Context service is a perfect fit in my case. Benny On Thu, Oct 1, 2009 at 3:17 AM, Robin Komiwes wrote: > Just inject the "Context" service and use the getInitParameter method. > > > > On Thu, Oct 1, 2009 at 9:01 AM, Inge Solvoll >wrote: > > > I believe you just have to

Re: Reading context-params in T5

2009-10-01 Thread Robin Komiwes
Just inject the "Context" service and use the getInitParameter method. On Thu, Oct 1, 2009 at 9:01 AM, Inge Solvoll wrote: > I believe you just have to inject SymbolSource into your class and get the > parameter value from there. The ServletContextSymbolProvider should be on > top of the situat

Re: Reading context-params in T5

2009-10-01 Thread Inge Solvoll
I believe you just have to inject SymbolSource into your class and get the parameter value from there. The ServletContextSymbolProvider should be on top of the situation :) On Wed, Sep 30, 2009 at 8:39 PM, Benny Law wrote: > Hello, > > I define the application version along with some other thing

Reading context-params in T5

2009-09-30 Thread Benny Law
Hello, I define the application version along with some other things as context-params in web.xml. What is the best way to read these parameters in T5? Thanks. Benny