Hi all,

I am new on Tapestry and try to become familiar with it, mostly through this
forum and the official site. I am trying to migrate a simple servlet into
tapestry.

I find myself search for days for tasks that seem simple. Currently I am
trying to achieve the following:

a) Load some init parameters, located in web.xml. I want to (pre)initialize
them once and have access to them from all pages. In a simple servlet i load
them inside servlet's init() method using ServletConfig. How can I do in on
Tapestry?
b) Similarly with above, I want to load a datasource (configured on tomcat),
only once and use it on all my pages. In a simple servlet I do a Context
lookup in init() method and have the datasource object available. 

So to sum up the question is: how do I preload an object once, and have it
available
for all pages (not inside a session)?


I am using version 5.0.6

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Initialize-objects---like-in-HttpServlet%27s-init%28%29-tf4743945.html#a13565642
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to