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:
Reference:
http://blogs.oracle.com/swchan/entry/servlet_3_0_web_fragment



Leave a Reply 7

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


Ouadie

Ouadie

The Correct answer is : C

Arturo

Arturo

I think the correct answer is D.

Adi

Adi

The correct answer must be D

mohammed

mohammed

why d must be the correct answer?

Allan Santos

Allan Santos

Because there are only tree jars files, as such, all options in D answer will work at the same way.

Rudi

Rudi

D is the correct answer. for sure !!