String path =
getServletConfig().getServletContext().getRealPath("/WEB-INF/");
will give you the real path to your WEB-INF directory. You might have to add
a trailing slash, depending on your servlet container.
Pierre-Yves Saumont
-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
Endre St�lsvik
Envoy� : vendredi 11 mai 2001 12:21
� : [EMAIL PROTECTED]
Objet : Question about file "reachablitiy"
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.
Any advice or explaination will be appreciated!
--
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
___________________________________________________________________________
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