I had the same problems as Dave Jarvis about mixing resources with classes and lib , so I played around a bit and found this solution:
I have placed resource files in WEB-INF/resources . Then, to download them, I used this:
getClass().getClassLoader().getResourceAsStream("../resources/main.xml");
I don't know that using .. is a much cleaner solution, but my files at least don't mix with classes or banks.
RustyTheBoyRobot
source share