I have 2 filters in my application. Based on some condition, I want to choose whether to execute the second filter or not. Is there a way to do this?
I did some googling with no success. I want the request to continue without executing the second filter. Is that possible?
Any help will be appreciated.
You can set an Attribute in your request and check it in your second filter.
You can simplify the code above like this :
This way you just check the presence of the attribute “executeSecondFilter”