jsp页面开启EL表达式
jsp要访问绝对路径的时候,可以使用el表达式:
src="${pageContext.request.contextPath}/js/cc.js">
<%@page isELIgnored="false"%>
或者在web.xml中整体的开启或者关闭EL表达式:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignore>
</jsp-property-group>
</jsp-config>