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?
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?
To ensure that the authorization filter is invoked before the filter that narrows results by the provided search criteria, you need to place the filter mapping elements in the required order in the web.xml deployment descriptor. This is because the order in which filters are defined in the web.xml file determines their execution order.
Correct answer is B. https://stackoverflow.com/questions/6560969/how-to-define-servlet-filter-order-of-execution-using-annotations-in-war
Correct answer is B
Answer B. You can only define the order of filters in the chain using web.xml file.