I want to get the current URL of my website. Not the context, not the ports, not the scheme or the protocol. Only the relative url. For example:
https://www.myurl.com/context/relative/url/site.mvc
I want to have:
/relative/url/site.mvc
${pageContext.request.contextPath}
gives me: /context/
${pageContext.request.requestURL}
gives me https://www.myurl.com/context/WEB-INF/tiles/relative/url/site/center.jsp
Thats where the site is located in my directory.
But I want the relative path of the website... without Javascript!