>>107
classes 直下の foo.txt を読むとして:

ClassLoader loader = this.getClass().getClassLoader();
InputStream in = loader.getResourceAsStream("foo.txt");

または
ServletContext context = getServletContext();
InputStream in = context.getResourceAsStream("foo.txt");

または
ServletContext context = getServletContext();
String path = context.getRealPath("/WEB-INF/classes/foo.txt");

2 個目は実際にやったことがないので本当に出来るか分からん。
俺はいつもリソースバンドルを使うか /WEB-INF/conf とかに置いて
getRealPath() でやってる。