在jsp页面中获取当前项目名称方法



在jsp页面中获取当前项目名称方法。

1.java表达式:<%=this.getServletContext().getContextPath() %>
2.el标签通过标签: ${pageContext.request.contextPath}