Hello,
I need a ServletConfigAware servlet that I have already configured as a HttpRequestHandler @Controller invoked by HttpRequestHandlerServlet.
Unfortunately, my ServletConfigAware.setServletConfig() method is never called.
I have modified the HttpRequestHandlerServlet to call ServletConfigAware.setServletConfig() if the target servlet is a ServletConfigAware, but there must be a cleaner way to do it.
Do you know what I should do?
If it helps, I added the ContextLoaderListener and RequestContextListener listeners to my web.xml, and also the contextConfigLocation pointing to classpath:applicationContext.xml where I use the <context:component-scan> tag to make Spring look for my annotated beans (this works, the only problem is the ServletConfigAware interface; Spring is not "aware" of it!). I don't use Spring MVC (just servlets and also Jersey integrated with Spring).
Thanks in advance!
Ferran


Reply With Quote