The mandatory location of all Web resources, including HTML, JSP, graphic files, and so on. If the files are not placed in this directory (or in a subdirectory structure under this directory), the files will not be available when the application is executed on a server. The Web content folder represents the contents of the WAR file that will be deployed to the server. Any files not under the Web content folder are considered development-time resources (for example, .java files, .sql files, and .mif files), and are not deployed when the project is unit tested or published.
So, in my war file, all the stuff comes directly from WebContent and only classes folder from the build folder(in eclipse), doesn't it?
Joined: Mar 17, 2012
Sometimes some jar files are added to the lib directory as well. It depends on how you setup your IDE and build process. e.g I use eclipse but also use a build tool. I don't have a WebContent folder at all but I have a webapp folder instead which serves a similar purpose.
Hey one more question! When we click on Run on Server, does eclipse take those files from WebContent folder(name may vary) assuming it is just like a war file and shows us the webapp we created? I am asking this because at that time we haven't created any war file.