aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Why not 'D' is correct. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Why not Watch "Why not New topic
Author

Why not 'D' is correct.

Marut pandey
Ranch Hand

Joined: Mar 10, 2008
Posts: 43
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

Joined: Dec 31, 2008
Posts: 170

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...


SCJP 5, SCWCD 5, SCBCD 5
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3231
    
    6
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


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
Jonathan Elkharrat
Ranch Hand

Joined: Dec 31, 2008
Posts: 170

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

Joined: Mar 10, 2008
Posts: 43
Thank you guys !
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why not 'D' is correct.