JSP 2.1 开始,JSP EL就可以用在JSP中.
JSP EL是不用设置的.一般不让用的时候才下面的方法禁止..
1.使用page指令的isELIgnored属性
<%@ page isELIgnored=”true”%>
2.或者修改web.xml
<web-app…>
<jsp-config>
<jsp-property-group>
<url-patten>*.jsp</url-ignored>
<el-ignored>true</el-ignored>
</jsp-property-group>
</jsp-config>
</web-app>
<web-app…>
<jsp-config>
<jsp-property-group>
<url-patten>*.jsp</url-ignored>
<el-ignored> true</el-ignored>
</jsp-property-group>
</jsp-config>
</web-app>
<jsp-config>
<jsp-property-group>
<url-patten>*.jsp</url-ignored>
<el-ignored> true</el-ignored>
</jsp-property-group>
</jsp-config>
</web-app>
把我这上面的代码true,改为false就行了.可以你的JSP版本问题
<web-app…>
<jsp-config>
<jsp-property-group>
<url-patten>*.jsp</url-ignored>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>
</web-app>