JSP页面中,EL表达式获取根路径。

${pageContext.request.contextPath}

原文地址:https://www.cnblogs.com/czsblog/p/10425376.html