| Author |
scwcd hints doubt ?
|
gurpeet singh
Ranch Hand
Joined: Apr 04, 2012
Posts: 867
|
|
given is the point from scwcd hints at https://www.coderanch.com/how-to/java/ScwcdHints
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 ?
|
OCPJP 6(100 %) OCEWCD 6(91 %)
|
 |
Frits Walraven
Rancher
Joined: Apr 07, 2010
Posts: 1039
|
|
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.
Regards,
Frits
|
 |
 |
|
|
subject: scwcd hints doubt ?
|
|
|