Is WEB-INF in the CLASSPATH?

Shyam picture Shyam · Apr 27, 2009 · Viewed 36.3k times · Source

Is the WEB-INF folder in the CLASSPATH of a Java Web application?

Answer

Jack Leow picture Jack Leow · Apr 27, 2009

I'm assuming you're referring to the /WEB-INF directory in the root of the web application folder structure.

No, it's not in the classpath.

/WEB-INF/classes is on the classpath though, and so are the JAR files in /WEB-INF/lib.