Which of the following deployment descriptor, web.xml, snippets correspond to the web fragment processing orders of X, Y, Z?

Given a jar file packaged with three web fragments with names X, Y and Z respectively.
Which of the following deployment descriptor, web.xml, snippets correspond to the web fragment
processing orders of X, Y, Z?
(i) <absolute-ordering>
<name>X</name>
<name>Y</name>
<name>Z</name>
</absolute-ordering>

(ii) <absolute-ordering>
<name>X</name>
<name>Y</name>
</absolute-ordering>
(iii) <absolute-ordering>
</others>
<name>Y</name>
<name>Z</name>
</absolute-ordering>
(iv) <absolute-ordering>
<name>X</name>
</others>
<name>Z</name>
</absolute-ordering>
(v) <absolute-ordering>
<name>X</name>
<name>Y</name>
</others>
</absolute-ordering>

Given a jar file packaged with three web fragments with names X, Y and Z respectively.
Which of the following deployment descriptor, web.xml, snippets correspond to the web fragment
processing orders of X, Y, Z?
(i) <absolute-ordering>
<name>X</name>
<name>Y</name>
<name>Z</name>
</absolute-ordering>

(ii) <absolute-ordering>
<name>X</name>
<name>Y</name>
</absolute-ordering>
(iii) <absolute-ordering>
</others>
<name>Y</name>
<name>Z</name>
</absolute-ordering>
(iv) <absolute-ordering>
<name>X</name>
</others>
<name>Z</name>
</absolute-ordering>
(v) <absolute-ordering>
<name>X</name>
<name>Y</name>
</others>
</absolute-ordering>

A.
(i) only

B.
(i) and (ii)

C.
(i) and (iv)

D.
(i), (iii), (iv) and (v)

Explanation:
http://blogs.oracle.com/swchan/entry/servlet_3_0_web_fragment



Leave a Reply 5

Your email address will not be published. Required fields are marked *


giuseppe frascadore

giuseppe frascadore

D would be correct, but there is a Typo. It should be .For me the right answer is A

indra

indra

the correct answer is C

giuseppe

giuseppe

Why C? In absolute ordering you can use ‘others’ too. D