---
title: "spring mvc 2.5 jsp el表达式 不起作用的解决方案"
author: "kim"
date: "2008-06-11T11:59:54Z"
tags: []
categories: ["企业架构"]
slug: "spring-mvc-2-5-jsp-el"
draft: false
lastmod: "2011-01-18T11:25:29Z"
id: 202090
url: "https://kim.iteye.com/blog/202090"
---

最近正在学习spring mvc 2.5，发现基于annotation的配置相当好用。但遇到一个el表达式实效的问题，经过一段时间的研究，终于得到解决。

环境：tomcat5.5

web.xml

&lt;web-app xmlns="[http://java.sun.com/xml/ns/javaee](http://java.sun.com/xml/ns/javaee)"  
    xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)"  
    xsi:schemaLocation="[http://java.sun.com/xml/ns/javaee](http://java.sun.com/xml/ns/javaee)  
    [http://java.sun.com/xml/ns/javaee/web-app\_2\_4.xsd](http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd)" version="2.4"&gt;

2.4版本默认支持el表达式，如果使用2.5版本，默认el表达式是关闭的

那么jsp页面里应该增加&lt;%@ page isELIgnored="false"%&gt;