Sorry to revive this but i still can't get it to work.
I've been playing with it and I'm receiving a FileNotFoundException. I have tried the filename, /filename, directory/filename, /directory/filename, and even the absolute URL, but still the class will not find the file.
I have put the file in ROOT, the web-app directory, WEB-INF, classes, and even at the package level, but NOTHING seems to find this file.
If no one knows, can anyone suggest somewhere else I might ask?