Hello Angelo!
Angelo Chen wrote:
>
> I tried to do following, but does not work:
> 1. i added a param in the web.xml:
> <context-param>
> <param-name>tapestry.app-package</param-name>
> <param-value>org.test</param-value>
>
> <param-name>test</param-name>
> <param-value>myparam</param-value>
> </context-param>
>
You have to define each context parameter seperately:
<context-param>
<param-name>tapestry.app-package</param-name>
<param-value>org.test</param-value>
</context-param>
<context-param>
<param-name>test</param-name>
<param-value>myparam</param-value>
</context-param>
Then it should work.
Chris
PS: you can also use the ApplicationGlobals in your AppModule to use it in
other services (e.g. for things you want to do during startup).
--
View this message in context:
http://www.nabble.com/T5%3A-retrieve-user-defined-parameter-at-start-of-Tapestry-tf4565342.html#a13042750
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]