Property 'XXX' not found on type java.lang.String解决方案

一,标签指令错误。

原指令标签:

[java] view plain copy

  1. <%@ taglib prefix="c" uri="http://j ava.sun.com/jstl/core" %>

改正后的指令标签:

[java] view plain copy

  1. <%@ taglib prefix="c" uri="http://j ava.sun.com/jsp/jstl/core" %>

二,foreach标签错误

原标签

<c:forEach items="XXX" var="xx">
...
</c:forEach>

改正后指令

<c:forEach items="${XXX}" var="xx">
...
</c:forEach>

三,属性值错误

比如${xxx }存在空格也是有可能出错的,总之认真检查。

Property 'XXX' not found on type java.lang.String解决方案

时间: 2024-10-13 12:36:36

Property 'XXX' not found on type java.lang.String解决方案的相关文章

javax.el.PropertyNotFoundException: Property &#39;name&#39; not found on type java.lang.String

javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193) javax.el.BeanELResolver.property(BeanELResolver.java:267) javax.el.BeanELResolver.getValue(Bean

Property &#39;id&#39; not found on type java.lang.String问题解决

一般出现上述问题:存在两种情况 1.你的程序的属性没有提供getter方法 2.在<c:forEach var="list" items="${requestScope.list}" varStatus="vs">这里你没有采取EL表达式 但是我却犯了一个很弱智的错误 在这里items="${requestScope.list}"我写成了 items=" ${requestScope.list}"

Property &#39;id&#39; not found on type java.lang.String

改为 忘写了$符,取不出来,因此报错! Property 'id' not found on type java.lang.String

Caused by: javax.el.PropertyNotFoundException: Property &#39;product&#39; not found on type java.lang.String

今天在JSP利用EL表达式取值报了 "javax.el.PropertyNotFoundException”,经过debug和打印将问题定位到这段代码: HTML应该是没啥问题,看提示在java.lang.string类型上找不到属性“product”,应该是EL表达式哪里写错了,然后将图中EL表达式重新写了一遍: 然后神奇的不报错了,搞得我一脸蒙蔽,我将每段代码都比对了一下,没发现哪里不对,干就干彻底,替换每段代码测试,结果第一段替换进去就OK了 仔细检查了两段代码: //报错代码 <c

Caused by: javax.el.PropertyNotFoundException: Property [userName] not found on type [java.lang.String]

Caused by: javax.el.PropertyNotFoundException: Property [userName] not found on type [java.lang.String] at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:260) at javax.el.BeanELResolver$BeanProperties.access$300(BeanELResolver.java:21

javax.el.PropertyNotFoundException: Property &#39;id&#39; not found on type java.lang.Integer

javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.Integer    at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:237)    at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:214)    at jav

spring mvc出现 Failed to convert property value of type &#39;java.lang.String&#39; to required type &#39;java.util.Date&#39; for property &#39;endtime&#39;

在使用spring mvc中,绑定页面传递时间字符串数据给Date类型是出错: Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property 'expert.birthdate'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of typ

spring3+struts2+hibernate3整合出现的问题,No mapping found for dependency [type=java.lang.String, name=&#39;struts.objectFactory.spring.enableAopSupport&#39;]

七月 11, 2016 3:49:24 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:EBook' did not find a matching property.七月 11, 2016 3:4

Name for argument type [java.lang.String] not avai

项目通过MyEclipe部署到Tomcat运行一切OK 使用Jekins,Ant进行管理,部署也OK,但是访问项目时就出现: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either. 参考 http://m.blog.csdn.net/blog/kouwoo/42869779 采用第二种方法最活力,使用Ant编译ja