ContextPath Web

[ JSP ]

<%=request.getContextPath() %> → /root


[ JSTL ]

<c:url value='/' /> → /root/


[ EL ]

${pageContext.request.contextPath} → /root


출처: http://jyh1861.tistory.com/10 [공부다음공부]


[Javascript] 

  var contextPath="${ pageContext.request.contextPath}/";