Which XML element is used to declare a filter in a web application's deployment descriptor?
- filter
- filter-mapping
- servlet-filter
- web-filter
The element is used to declare a filter in a web application's deployment descriptor (web.xml). This element contains the filter name and the fully qualified class name of the filter.
Loading...
Related Quiz
- Describe the steps for setting up a custom error page for a specific type of exception in a servlet application.
- How does a distributed cache enhance the scalability of a web application?
- How does a filter pass the request and response to the next entity in the filter chain?
- In a situation where multiple asynchronous tasks are initiated by a servlet, how is the completion of these tasks managed?
- If a filter needs to perform different actions based on the type of HTTP request, which method or object should it use to determine this?