I\'m trying to get a correct current URL in JSP in Spring webapp. I\'m trying to use the following fragment in the JSP file:
${pageContext.request.requestURL} >
Maybe you are looking for something like:
<%= new UrlPathHelper().getOriginatingRequestUri(request) %>
This is not that elegant but solved my problem.