Search code examples
struts2servlet-filtersstruts2-namespace

Excluding filters from a particular action


Here's the situation. All the actions in my struts.xml file share the same namespace. I have a bunch of filters applied to the whole namespace in web.xml. Now I've added another action and I want only one of those filters applied to this new action. Is there a common practice to follow here? Do I need to create a different namespace for this new action or is there another way?


Solution

  • So I created a different namespace for this action and then mapped the filter to it.