Kizspy | Question: 44
(Choose 1 answer)
What is the purpose of the <filter> element in the web.xml deployment descriptor of a Java web application?
A. To define the structure of HTML pages.
B. To handle HTTP requests and responses.
C. To map a servlet to a URL pattern, specifying the URL at which the servlet will respond.
D. To configure and define filters that can intercept requests and responses in the web application.
E. None of the others