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:
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
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
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