my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes What are required in a WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "What are required in a WAR file" Watch "What are required in a WAR file" New topic
Author

What are required in a WAR file

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
Which is required to be present within a WAR file?
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.xml
H. /WEB-INF/lib

If my appli doesnt have servlet classes (yes all jsp pages ) and I do not have any library in JAR, would E, H required?
Priya Jothi
Ranch Hand

Joined: Jul 13, 2004
Posts: 168
Hi,

If u dont have any servlets & dependency jars then i dont think u need classes and lib folder.So option E & H are not required.But you need to have WEB-INF/web.xml.So correct one is option D.Correct me if am wrong.

Regards,
Priya.
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
Originally posted by Alec Lee:
Which is required to be present within a WAR file?
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.xml
H. /WEB-INF/lib

If my appli doesnt have servlet classes (yes all jsp pages ) and I do not have any library in JAR, would E, H required?


if no servlet classes, then option E,H wont be required, from my view.
2ndly, your question's answer from me, are: option C,D,E,F,H with servlet classes exist.

correct me if i'm wrong, also.


From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
From the above list only option is required.


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
hi....

i was wonder whether my answer provided first post was correct or not?

because i face this question with a mock exam also.

according to page 580, the BANG box, dictated everything. So ...?
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
only D is correct
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What are required in a WAR file