The "dynamic" classpath will display WEB-INF/classes , each JAR file under WEB-INF/lib as a separate entry. Other folders under WEB-INF not included.
In your example, bar.properties will not be in the classpath. Move it to WEB-INF/classes or put it in a JAR file under WEB-INF/lib .
Which in the rest of the classpath depends on your Servlet container. It is implementation specific, but most containers have two other places to place classes. One of them is the directory that is displayed to the container, but not the application, and the other to the container and all applications. Since the second ClassLoader is visible to all applications, the static members of these classes can be used to exchange information between applications.
erickson Nov 20 '08 at 16:24 2008-11-20 16:24
source share