Solved

Very Urgent. How to get a relative path from the absolute path

Posted on 2009-05-20
7
258 Views
Last Modified: 2013-12-22
This gives the absolute path

c:\net\user\anonymous\testfile.jpg

How do i get relative path from it ..like http://website:7001/user/anonymous/testfile
             
0
Comment
Question by:cutie_smily
  • 3
  • 3
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24433455
In what context are you working - a webapp?
0
 

Author Comment

by:cutie_smily
ID: 24434011
yes , webapp
0
 

Author Comment

by:cutie_smily
ID: 24434020
yes, webapp
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:cutie_smily
ID: 24434022
yes, we app
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 24434561
Please post what the following returns:
out.println(request.getContextPath());

Open in new window

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24436776
:-)
0
 
LVL 92

Expert Comment

by:objects
ID: 24437222
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

786 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