RE: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Shapira, Yoav
Howdy, You got it. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Timothy Stone [mailto:[EMAIL PROTECTED] >Sent: Friday, June 13, 2003 12:56 PM >To: Tomcat Users List >Subject: Re: getResourceAsStream and relative paths in web.xml > >> 1. Ce

Re: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Timothy Stone
1. Certainly, using a FileXXX class will attempt to interpret the init parameter value (/WEB-INF...) is an absolute path, because that's how absolute paths are defined for files. Thank you again Yoav. The recommendation then is to skip trying to use a FileInputStream (because the String provided i

RE: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Shapira, Yoav
pira, Yoav >Sent: Friday, June 13, 2003 12:42 PM >To: Tomcat Users List; [EMAIL PROTECTED] >Subject: RE: getResourceAsStream and relative paths in web.xml > > >Howdy, > >>*But* this did not work, which I guess is a "relative issue": >> >>... &g

RE: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Shapira, Yoav
Howdy, >*But* this did not work, which I guess is a "relative issue": > >... > public void init(ServletConfig config) throws ServletException { > super.init(config); > try { > this.passwordFile = config.getInitParameter( "passwordFile" ); > this.passwords = new Prope

getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Timothy Stone
List, I'm following a twist on some advice that I got from Yoav Shapira. But in playing to learn more I ran across something that I have not been able to solve from reading the documentation. I want to put the relative path to a user=password property file in the web.xml. Given: #web.xml ...