> From: David Kerber [mailto:[EMAIL PROTECTED] > Subject: Re: How to locate a configuration file on disk at runtime > > > 2. Put the config file somewhere in the tree of my webapp, such at > > docbase or in conf. But again, I can't figure out how to pick that > > location in a form I can use to read the file in with a FileReader > > object. > I'd still like to figure this one out, though.
Any particular reason it must be a FileReader? If it can be any flavor of InputStream, then ServletContext.getResourceAsStream(String path) should work. The path can be something like "WEB-INF/myConfig.properties" or wherever else you'd like. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]