第一种方案 加入<%@ page isELIgnored="false" %> 第二种方案修改web.xml <web-app xmlns=" " xmlns:xsi=" " version="2.4" xsi:schemaLocation=" "> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://java.sun.com/xml/ns/j2ee http://www.w3.org/2001/XMLSchema-instance http://java.sun.com/xml/ns/j2ee