問題詳情

5 Given a war file with the following structure

 

where wf.jar contains a valid web-fragment.xml and the class MyServlet.class. The following is a snippet of web.xml 

The following is a snippet of web-fragment.xml 


The following is code snippet of MyServlet: 


What is the value of x inside doGet method of MyServlet?
(A) 1
(B) 0
(C) -1
(D) -2
(E) -3

參考答案