views:

1813

answers:

2

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

+13  A: 

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 though, and so are the JARs in /WEB-INF/lib.

Jack Leow
+2  A: 

Additionally files in WEB-INF are protected against being requested by the web-container, i.e. they are invisible to the outside world.

Thorbjørn Ravn Andersen
Unless you forward the request (although BEA had a broken implementation of this many years ago).
Tom Hawtin - tackline
You can almost always circumvent protection.
Thorbjørn Ravn Andersen