Solved

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

Posted on 2009-05-20
7
260 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

726 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