Solved

Relative / Absolute paths within servlet engine

Posted on 2003-11-03
3
254 Views
Last Modified: 2013-11-24
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
0
Comment
Question by:howesd
  • 2
3 Comments
 
LVL 1

Author Comment

by:howesd
ID: 9674166
Oops - I forgot to mention that I'm running inside a Tomcat 3.x environment
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 9674212
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9674380
:-)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 84
Windows 10 and JDK 7 7u85 4 41
eclipse with Angularjs2.0 3 36
jboss wildfly 10.1 10 89
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question