Solved

Relative / Absolute paths within servlet engine

Posted on 2003-11-03
3
252 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java asynchronous logging 4 34
Free Alternative to JIRA 4 58
JAVA part two 5 41
Java passing arguments (type error) 2 35
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now