• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why not 'D' is correct.

 
Marut pandey
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which path is required to be present within a War file? (choose one)

A. /classes
B. /index.html
C. /MANIFEST-INF
D. /WEB-INF/web.xml
E. /WEB-INF/classes
F. /WEB-INF/index.html
G. /META-INF/index.html

Answer is 'E' can anybody justify this answer. why not 'D' is correct.
 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in fact, i think none of these are required.
a WAR file can contain only static content (or JSP),
and therefore don't need the WEB-INF at all...
 
Mikalai Zaikin
Ranch Hand
Posts: 3367
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !

I would say, the only correct option is D.

Web application MUST have a deployment descriptor (WEB-INF/web.xml).

It can OPTIONALLY have something in WEB-INF/classes, but does not have to. I believe, WEB-INF/classes is not mandatory.

So, the answer is D.

regards,
MZ
 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i thought so too but then i saw the note 12 in the Scwcd Hints.
and this post.
btw, bert bates state at that post such topic won't be on the exam (because the specs are not clear on that).

N.B.
you did a really good job with your notes. very useful. thanks
 
Marut pandey
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic