When multiple filters are defined, in what order are they executed?

  • Alphabetical order
  • Order of declaration in web.xml
  • Order specified in filter-mapping
  • Random order
Filters are executed in the order of declaration in the web.xml file. The order can be important when one filter's output is used as input to another filter in the chain.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *