在JSP页面获取当前项目名称的方法: 方法1: <%= this.getServletContext().getContextPath() %> 方法2: 使用EL表达式 ${pageContext.request.contextPath} 相关文章: 2021-08-13 2022-12-23 2022-12-23 2022-02-07 2021-11-21 2022-12-23 2022-12-23 2022-12-23