jsp中得到ContextPath的两种方法

1.scriptlet

<%=request.getContextPath()%>

2.el

${pageContext.request.contextPath}

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.