Sign in to Community
Sign in to view all badges
We are using etc mapping to shorten the URL's, We have a servlet where we will pass shortened URL
Param = "/en/testPage.html"
is there any way i can get absolute content path in java given short URL?
Excepted output : "/content/mywebsite/en/testPage.html"
Ay input helps, Thanks in advance!
With a servlet, you can do something like this:
private ResourceResolver resourceResolver;
String mappedPath = resourceResolver.map("/content/mywebsite/en/testPage");