On Fri, 11 May 2001, Gokul Singh wrote:

| > Can I access (config) files which resides in the WEB-INF directory?
| >
| > I have some config files for a "server" I've made in Servlets, and I
| > basically wonder what the spec says about files in WEB-INF (not lib or
| > classes). I now have them residing in "classes", but I find this a bit
| > ugly. It would be cooler if I could put them along with the web.xml.
|
| The latest release of the servlet specification 2.3 pfd2 is a very readable
| document.
| I would suggest that anyone doing development on servlet read it once.

Jess, I will do. Have read some of it.

|
| Section SRV.9.5 of the spec says the following
| <from specs>
| However, the contents of the WEB-INF directory
| are visible to servlet code using the getResource() and
| getResourceAsStream()
| method calls on the ServletContext. Any application specific configuration
| information
| that the developer needs access to from servlet code yet does not wish to
| be exposed to the web client may be placed under this directory.
| </from specs>
|
| I hope that solves your doubt.

It definately does! Thanks! Exactly as I hoped for! ;)


--
Mvh,
Endre

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to