On Thu, 26 Jan 2012 14:52:41 -0200, Mike Leonardo <[email protected]> wrote:

Hi,

Hi, Mike!

I'm working with integrating WURFL into my Tapestry app but I need to conditionally add WURFL's ServletContextListener through Tapestry but I can't figure out the right "hooks" or contribution that would make this possible. I want to avoid anything in my web.xml since my project is also used as a library for other projects with their own web.xml files overriding this one. Is it possible to contribute a ServletContextListener through AppModule in some way?

I'd try adding an HttpServletRequestFilter (before:*) which calls (or not, depending on the needed logic) the contextInitialized() method of WIRFL's ServletContextListener implemention just once in the webapp lifetime.

Cheers!

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to