How do you specify the URL patterns to which a filter should apply?

  • By modifying the servlet code.
  • In the filter's constructor.
  • In the web server settings.
  • Using the
URL patterns to which a filter should apply are specified using the element inside the element in the web.xml file. This defines the URLs that the filter will intercept.
Add your answer
Loading...

Leave a comment

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