The order the container uses in building the chain of filters to be applied for a particular request URI is as follows:
First, the <url-pattern> matching filter mappings in the same order that these elements appear in the deployment descriptor.
Next, the <servlet-name> matching filter mappings in the same order that these elements appear in the deployment descriptor.
S. Abass, S. Ahmed, S. Makki, and N. Osman. International Journal of Computer Science and Information Technology (IJCSIT), 10 (1/2):
01 - 15(June 2021)