今天在学习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中:
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
注意里面的web-app_2_5.xsd,就是这个引起的,在web-app_2_4.xsd中就不会出现这种问题(这个版本的isELIgnored默认设置为false)。
在不改变web.xml2.5版本的情况下解决办法是:在jsp页面头加:<%@page isELIgnored="false"%> 问题得以解决。
分享到:
相关推荐
web-app_2_4.xsd
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
J2EE web app 3.1 xsd
protoc-gen-grpc-java-1.40.0-osx-aarch_64 mac arm芯片平台grpc生成java的支持。官网上面没有,这是基于源码编译生成的。...<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation=...
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="...-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web... <display-name>网站名称</display-name> 网站描述 <!-- icon元素包含small-icon和large-icon两...
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://java.sun.com/dtd/web-app_2_3.dtd http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
引用外部:web-app_2_4.xsd 添加eclipse 配置文件提示-附件资源
struts-2.0/2.1.dtd struts-config.dtd ........ web-app_2_3.dtd web-app_2_4.xsd
spring-beans-4.3.xsd spring-beans-4.3.xsd spring-beans-4.3.xsd spring-beans-4.3.xsd
极其方便的能够在MS中转换结构
javax/servlet/resources/web-app_2_5.xsd javax/servlet/resources/xml.xsd javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd javax/servlet/jsp/...
bpel执行引擎用来执行bpel业务流程
Maven的pom.xml配置文件详细配置说明 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...
内容包括: spring-aop-1.1.1.jar spring-aop-1.2.6.jar spring-aop-1.2.9.jar spring-aop-2.0.2.jar spring-aop-2.0.6.jar spring-aop-2.0.7.jar spring-aop-2.0.8.jar spring-aop-2.0.jar spring-aop-2.5.1.jar ...
spring-aop-3.0.xsd 这个下载之后可以直接放在eclipese的xml的catalog中配置,已到达eclipse可以自动提示xml的功能
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <servlet-name>velocity</servlet-name> <servlet-class>org.apache.velocity.tools.view.VelocityViewServlet</servlet-class> <servlet-mapping> ...
spring-tomcat-weaver.jar spring-toplink.jar spring-web.jar spring-webmvc.jar standard.jar struts.jar swarmcache-1.0rc2.jar velocity-1.5.jar velocity-tools-view-1.3.jar xalan.jar xerces-2.6.2.jar xml-...
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <!-- 指定Acegi资讯的设定档--> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/acegi-config.xml</param-value...