Filter servetcontext gives null values
Hi,
I have initialized a couple of HashMaps in the servletcontext object in one of my servlets init methods which is then loaded at startup. I have tried to access the HashMaps in my filter using config.getServletContext() but I always get NULL values. When I try to access the HashMaps from other servlets on my app, I get the values. From what I have read there is only one servletcontext in the entire app, does anyone know what is going on here?
IN SERVLET
context.setAttribute(CachedPagesList, myHashMap);
IN FILTER
HashMap hm= (HashMap) context.getAttribute(CachedPagesList);
Thanks!
IP

