Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

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

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
cutie_smily
Asked:
cutie_smily
  • 3
  • 3
1 Solution
 
CEHJCommented:
In what context are you working - a webapp?
0
 
cutie_smilyAuthor Commented:
yes , webapp
0
 
cutie_smilyAuthor Commented:
yes, webapp
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
cutie_smilyAuthor Commented:
yes, we app
0
 
CEHJCommented:
Please post what the following returns:
out.println(request.getContextPath());

Open in new window

0
 
CEHJCommented:
:-)
0
 
objectsCommented:
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now