Re: Reading text file in classpath and web app

2004-01-29 Thread Tim Funk
How does it open the file? The solution might be as easy as dropping the config file in WEB-INF/classes/(optional package heirarchy) -Tim Andi Reinbrech wrote: Hi, I have an Axis web application, which calls a 3rd party API. This API opens up a text file, emapi.cfg, which needs to be a) on

RE: Reading text file in classpath and web app

2004-01-29 Thread Shapira, Yoav
Howdy, How does it open the file? Specifically, because it needs to be on the classpath chances are you're not doing file I/O but rather ClassLoader#getResource. This is good. You just have to know the argument to ClassLoader#getResource. If it's a simple /emapi.cfg then put emapi.cfg in