第一种:EL表达式
${pageContext.request.contextPath}
<script src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
第二种:JSP脚本
<%
request.setAttribute("path", request.getContextPath());
%>
// 或
<%
pageContext.setAttribute("path", request.getContextPath());
%>
<script src="${path}/static/js/jquery.js"></script>
第三种:JSP表达式
<%=request.getContextPath() %>
<script src="<%=request.getContextPath() %>/static/js/jquery.js"></script>