When implementing a filter, you should probably read the <init-param> parameter of the filter. There, instead of reading the filter parameter, you can directly read the context parameter using:
filterConfig.getServletContext().getInitParameter("paramName");
Does this solve your question?
source share