---
title: " web.xml中\"web-app_2_5.xsd\"引起的EL表达式无效异常"
author: "lansky07"
date: "2009-06-09T17:13:40Z"
tags: []
slug: "web-xml-web-app-2-5-xsd-el"
draft: false
lastmod: "2009-06-09T17:13:40Z"
id: 405308
url: "https://lansky07.iteye.com/blog/405308"
---

今天在学习jmesa分页组件时遇到：**org.apache.jasper.JasperException: Unable to convert string "${tasks}" to class "java.util.Collection" for attribute "items": Property Editor not registered with the PropertyEditorManager**

这种异常，试着调了不少时间，tasks是从后台传过来的list集，在前台jsp页面不能使用**${tasks},**弄的我莫名其妙怎么会出现这样的问题，其实从后台取值并传值到前台来根本就没有错，而前台JSP页面EL表达式无效，解析不到EL表达式，引起的原因是web.xml中：

&lt;web-app version="2.5" 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\_5.xsd](http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd)"&gt;

注意里面的web-app\_2\_5.xsd，就是这个引起的，在web-app\_2\_4.xsd中就不会出现这种问题(这个版本的isELIgnored默认设置为false)。

在不改变web.xml2.5版本的情况下解决办法是：在jsp页面头加:&lt;[%@page](mailto:%@page) isELIgnored="false"%&gt;   问题得以解决。