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)
A. Asahara, K. Maruyama, A. Sato, and K. Seto. International Conference on Advances in Geographic Information Systems (SIGSPATIAL), page 25--33. New York, NY, USA, ACM, (2011)
M. Becker, H. Mewes, A. Hotho, D. Dimitrov, F. Lemmerich, and M. Strohmaier. International Conference Companion on World Wide Web, page 17--18. Republic and Canton of Geneva, Switzerland, International World Wide Web Conferences Steering Committee, (2016)