${pageContext.request.contextPath}is an EL expression equivalent to a JSP expression <%= request.getContextPath() %>.
It is recommended to use ${pageContext.request.contextPath}instead of hard coding your context path.
eg. <a href="${pageContext.request.contextPath}/info/page.html">Link</a>better than<a href="http://abc.xyz.com/info/page.html">Link</a>
source
share