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:
The following are some code snippets:
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
沒有留言:
張貼留言