方法一:在XML修改属性
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
方法二:在JSP页面添加page指令isELIgnored='false'属性
<%@ page isELIgnored="false" %>