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
             
cutie_smilyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CEHJConnect With a Mentor Commented:
Please post what the following returns:
out.println(request.getContextPath());

Open in new window

0
 
CEHJCommented:
In what context are you working - a webapp?
0
 
cutie_smilyAuthor Commented:
yes , webapp
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
cutie_smilyAuthor Commented:
yes, webapp
0
 
cutie_smilyAuthor Commented:
yes, we app
0
 
CEHJCommented:
:-)
0
 
objectsCommented:
0
All Courses

From novice to tech pro — start learning today.