file path problem

I'm writing a server application, where i have an XSL file in the web folder.

I have a utility class that need to use this XSL file to perform a transformation. my problem is..the file is on the server. I cannot use the absolute path..such as C://blah/blah/myFile.xsl..because the location is not fix (and not known .. for me at least).

How do i get the path to the file? so i can load the file (like .. new File(path));

any good keyword so i can google would help..i tried path java server..and a few other..and the result is not what i'm looking for

[578 byte] By [tnguyen1973a] at [2007-11-26 21:10:45]
# 1
You can use the getResource method in the class loaders for this.
LRMKa at 2007-7-10 2:47:45 > top of Java-index,Java Essentials,Java Programming...