And if you're not and you must know all filter names, simply put the names or class names in a filter init parameter of sorts and create your map in a servlet context listener. Seems like a lot of work just for a map of filters
This message was edited 1 time. Last update was at by Charles 'King
Veronica Lalchandani wrote:I had a requirement to get the filters ... Thanks everyone for your help
If your component is in the same web context, use the Servlet context method getResourceAsStream("/WEB-INF/web.xml") - Remember to wrap the InputStream into your favorite reader to read each line of the DD -- good luck