在JSP頁面擷取目前項目名稱的方法: 方法1: <%= this.getServletContext().getContextPath() %> 方法2: ${pageContext.request.contextPath}