In the context of filter configuration, what is the purpose of the tag in web.xml?
- Associates a filter with a servlet or URL pattern
- Defines filter initialization parameters
- Indicates the filter lifecycle
- Specifies the filter execution order
The tag in web.xml associates a filter with a servlet or URL pattern, specifying where the filter should be applied in the web application.
Loading...
Related Quiz
- Describe the lifecycle of a WebSocket in a Java web application.
- In an XSS attack, the _________ method of XSS involves the attacker injecting a script that is stored on the server.
- What is the difference between 'dirty read' and 'non-repeatable read' in the context of transaction isolation levels?
- A web application needs to redirect the user to different pages based on their role. How should this logic be implemented using servlets in MVC?
- In RESTful web services, a _______ request is often used to update existing resources.