How should filters be configured to apply only to certain URL patterns in a web application?

  • Configure in the web.xml file
  • Filters automatically apply to all URLs
  • Specify URL patterns in the filter mapping in the deployment descriptor
  • Use annotations in the filter class
Filters should be configured to apply only to certain URL patterns by specifying those patterns in the filter mapping in the deployment descriptor (web.xml).
Add your answer
Loading...

Leave a comment

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