javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String

 

这个错误应该是你从处理器里把数据展示给页面的时候出现的,而且用到了jstl表达式,比如:

javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String

 此时出现  javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String这个错误是为什么呢?

因为问题出现在<c:forEach>标签的items中,没有用EL表达式,直接上了一个字符串,改成

javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String

此时运行应该没问题,但是运行一下 会发现,还是一样的错误,因为在eclipse中写el表达式,敲大括号的时候会自动多出一个空格,此时也会出现这个错误,去掉空格

javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String

 搞定,程序正常运行。

相关文章:

  • 2021-08-25
  • 2021-10-24
  • 2021-08-16
  • 2021-12-16
  • 2021-08-22
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-06
  • 2021-12-22
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案