Link to home
Start Free TrialLog in
Avatar of howesd
howesd

asked on

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
Avatar of howesd
howesd

ASKER

Oops - I forgot to mention that I'm running inside a Tomcat 3.x environment
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-)