Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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