You created two filters for your web application by using the @WebFilter annotation, one for authorization and the other for narrowing results by the provided search criteria. The authorization filter must be invoked first.
How can you specify this?
A.
setting the priority attribute of the @WebFilter annotation for each of the filters
B.
placing the filter mapping elements in the required order in the web.xml deployment descriptor
C.
placing @WebFilterMapping annotations in the required order
D.
specifying the filter precedence order by using the @Priority annotation
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit