Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scwcd hints doubt ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ?
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2276
81
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic