I'm working on a Java EE web application with the following source code directory structure:
The folder I'm interested in is
WEB-INF: It contains
web.xml, XML files for setting up servlets, Spring bean wiring contexts and JSP tags and views. I'm trying to understand what constrains/defines this structure. E.g. do JSP files always have to be within
WEB-INF or could they be somewhere else? And is there anything else that might go in
WEB-INF? Wikipedia's WAR files entry mentions
classes for Java classes and
lib for JAR files – not sure I've fully grasped when these would be needed in addition to the other source file locations.