As I read somewhere in a book, we can decide/configure the sequence of filters. But I didn't find any related material over the net for the same.
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.
Filters Application OrderThe order of filter-mapping elements in web. xml determines the order in which the web container applies the filter to the servlet. To reverse the order of the filter, you just need to reverse the filter-mapping elements in the web. xml file.
A simple rc filter is 1st order , LC is second and so on... Related questions (More answers below)
The filter order is SAME AS the order you define them in the web.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With