• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mock exam doubt

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
32.Select sample web application file listing with appropriate directory structure
Please select two correct answers.
A.
index.html
/login.jsp
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/lib/basic.jar
/WEB-INF/classes/Test.class
B.
/index.html
/login.jsp
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/jar/basic.jar
/WEB-INF/classes/Test.class
C.
/index.html
/login.jsp
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/classes/basic.jar
/WEB-INF/classes/Test.class
D.
/index.html
/login.jsp
/images/logo.gif
/META-INF/web.xml
/WEB-INF/jar/basic.jar
/WEB-INF/classes/Test.class
E.
/index.html
/login.jsp
/images/logo.gif
/META-INF/web.xml
/WEB-INF/lib/basic.jar
/WEB-INF/classes/Test.class
F.
index.html
/images/logo.gif
/WEB-INF/web.xml
/WEB-INF/jsp/login.jsp
/WEB-INF/lib/basic.jar
/WEB-INF/classes/Test.class

The above Question i got from mock exam in which they have given correct answer as A and F... But i think answer should be A and E...So please correct me if i'm wrong.

Thanks;
Brijesh
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The correct answer is A and F. E is not correct because the deploment descriptor file (web.xml) should be under WEB-INF and not under META-INF. The container is going to look for it under WEB-INF.
 
Brijesh shah
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Prasanna Kate:
The correct answer is A and F. E is not correct because the deploment descriptor file (web.xml) should be under WEB-INF and not under META-INF. The container is going to look for it under WEB-INF.



Thanks Prasanna i got it...
If possible then please look in to my previous thread named servletcontext doubt i tried to learn about it through searching API but not understanding properly and also i dont have much time to search because i am going to take my exam soon..that is the reason i am posting my each query..

Thanks,
Brijesh Shah
-SCJP
-target SCWCD
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic