异常:javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
来源:互联网 发布:软件部门职责说明书 编辑:程序博客网 时间:2024/06/06 12:58
坑一:
以上代码抛出了此异常,并且提示红框框处有问题,百思不得其姐姐。满脸黑线。。。
乍一眼没毛病,瑕疵在哪不知道。
很久很久后我终于发现了,问题出现在标签的items中,没有用EL表达式,直接上了一个list字符串,我也是醉了。
所有,有以上异常的在错误的上下文找找是不是少了“$”符号。
坑二:
很爽快的引入JSTL标签:
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core” %>
感觉没毛病呀!
其实正确的是:
<%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %>
看看自己的库是不是导入错了吧!
坑三:
我不容易,完美的避开了坑一和坑二,但是我掉进了坑三。
<c:forEach items=" ${requestScope.list}" var="goods" >
没毛病呀,噫吁戏我勒个去!!!
许久。。。
额,只是因为多打了个空格,在此提醒大家在jstl中的属性值“”中不能有空格。
阅读全文
5 0
- 异常:javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
- 对与几种javax.el.PropertyNotFoundException: Property 'XXX' not found on type java.lang.String问题原因
- EL表達式錯誤:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'XXX' not found on type XXX
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'begin' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'key' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String
- javax.el.PropertyNotFoundException:Property 'statisDate' not found on type java.lang.String
- Caused by: javax.el.PropertyNotFoundException: Property 'title' not found on type java.lang.String
- 遇到错误javax.el.PropertyNotFoundException: Property 'start' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'mainimagepath' not found on type java.lang.String
- 解决javax.el.PropertyNotFoundException: Property 'empId' not found on type java.lang.String
- jstl报错ye:javax.el.PropertyNotFoundException: Property 'name' not found on type java.lang.String
- bootstrap系列之九下拉菜单
- 运行roscore时出现error while loading shared libraries:libroscpp.so
- (五)JNI学习之C语言基础,typedef与宏定义
- Android系统高通平台Kernel Watchdog
- vue中如何实现样式之间的切换
- 异常:javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
- python字符串分割
- 确定比赛名次--topo
- 使用APICloud编写优雅的HTML5代码《二》:ajax、文件上传
- DNS服务器【Linux-shell】
- 首次使用maven的配置过程
- linux下的一些常见命令学习
- 测试8.5
- python中二进制,八进制,十六进制的表现形式