File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes scwcd hints doubt ? 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 "scwcd hints doubt ?" Watch "scwcd hints doubt ?" New topic

scwcd hints doubt ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924

given is the point from scwcd hints at

12) Having a directory called WEB-INF is a strong recommendation, but not an absolute obligation. Look out for questions that ask you to say whether a web application must have particular directories. The correct answer is no!

i think as per servlet spec it is required to have WEB-INF directory. correct me if am wrong ?
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2099

If you read the specs well you can't find any place that it states that a web-application must have a WEB-INF directory. So technically spoken you can have a web-application without a WEB-INF directory with only JSPs and HTML-files in the root directory of the web-app. However nobody will ever use this in production of course.

check this WEB-INF-Directory-mandatory thread.

I think the Servlet 3.0 specs should have fixed this issue and made the WEB-INF directory mandatory.

I agree. Here's the link:
subject: scwcd hints doubt ?
It's not a secret anymore!