On Tue, 19 Feb 2013 10:32:38 -0300, dinesh707 <dinesh...@gmail.com> wrote:
I have a HttpServlet inside tapestry project.
Why?
But I think it is not recognized as a part of IoC.
You're right. Only stuff declared as services in Tapestry IoC are recognized by IoC.
So when I do an inject it does not work. It ends up throwing a null pointer exception. Any suggestion about how to inject the same hibernate session.
TapestryFilter puts the Registry instance in the TapestryFilter.REGISTRY_CONTEXT_NAME attribute of ServletContext. From the Registry instance, you can use the getService() methods to get any service you want.
-- Thiago H. de Paula Figueiredo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org