Relative / Absolute paths within servlet engine

I have a class which is attempting to load an XML document from the file system of the machine its operating on and then process it. I'm loading it into a JDOM document which takes either a java.net.URL or a java.io.FILE object as a parameter. I can get it to work if I pass in an absolute path/URL, but I can't figure out how to do using a relative URL.

Any ideas?

Dave
LVL 1
howesdAsked:
Who is Participating?
 
howesdAuthor Commented:
Oops - I forgot to mention that I'm running inside a Tomcat 3.x environment
0
 
CEHJCommented:
:-)
0
All Courses

From novice to tech pro — start learning today.