---
title: "Servlet2.5默认不支持EL表达式的解决办法"
author: "kisa77"
date: "2010-12-14T13:40:17Z"
tags: ["JSP", "Web", "XML"]
categories: ["非技术"]
slug: "servlet2-5-el"
draft: false
lastmod: "2010-12-14T13:40:17Z"
id: 841731
url: "https://kisa77.iteye.com/blog/841731"
---

Servlet2.5默认不支持EL表达式的解决办法

 

  只需稍作配置就可用了

  配置如：页面中：&lt;%@ page isELIgnored="false" %&gt;

  或者在web.xml里设置  

  &lt;jsp-config&gt;   

  &lt;jsp-property-group&gt;   

  &lt;url-pattern&gt;\*.jsp&lt;/url-pattern&gt;   

  &lt;el-ignored&gt;false&lt;/el-ignored&gt;   

  &lt;!-- &lt;el-ignored&gt;true&lt;/el-ignored&gt; --&gt;   

  &lt;/jsp-property-group&gt;   

  &lt;/jsp-config&gt;