tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Z." <>
Subject reading content in WEB-INF
Date Wed, 20 Feb 2002 00:33:02 GMT
I am using Tomcat 4.0.2. I have a file in the WEB-INF directory and I need
to access it with a servlet, how can I do that?

This is what is written in the docs:

web/WEB-INF/ - The special configuration files required for your
application, including the web application deployment descriptor (web.xml),
tag library descriptors for custom tag libraries you have created, and other
resource files you wish to include within your web application. Even though
this directory appears to be a subdirectory of your document root, the
Servlet Specification prohibits serving the contents of this directory (or
any file it contains) directly to a client request. Therefore, this is a
good place to store configuration information that is sensitive (such as
database connection usernames and passwords), but is required for your
application to operate successfully.

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message