• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to have a packaged Web Application without a WEB-INF directory?

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to have a packaged Web Application without a WEB-INF directory?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet API requires a certain directory layout, including WEB-INF. Any package you "install" that does not have a web.xml deployment descriptor will not be recognized as a web application.

(Why did this question even come up??)
Bill
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible to have a web application with out WEB-INF folder.

The web server looks into the web.xml file each time a request is made. web.xml file is the mother of your application. With out the mother the application is not ready. And web.xml file must be placed in WEB-INf folder. Even though if you have a web.xml file without a WEB-INF folder your project is not ready. so WEB-INF folder is necessary.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!