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} >
Try this:
<%@ page import="javax.servlet.http.HttpUtils.*" %> <%= javax.servlet.http.HttpUtils.getRequestURL(request) %>