2017年11月30日 星期四

QUESTION 83

Given a war file with the following structure
| - WEB-INF/classes/Myservlet.class
| - WEB-INF/lib/wf.jaf
Where wf.jar contains a valid web-fragment.xml and the following two classes: MyFilter1.class and
MyFiler2.class.
The web-fragment.xml is as follows:

image

The following are some code snippets:

image

When one access "/" of the above web application, which filters will be executed?

A. No filters will be executed.
B. MyFilter1
C. MyFilter2
D. MyFilter1 and MyFilter2


Correct Answer: C

沒有留言:

張貼留言