Property 'typeid' not found on type java.lang.String
来源:互联网 发布:顶级域名网站有哪些 编辑:程序博客网 时间:2024/05/29 06:54
前提是:
获取数据:
List<ProductType> childtypes = productTypeService.getScrollData(ProductType.class, jpqltypes.toString(), typeparams.toArray()).getResultList();
for(ProductType type : childtypes){
System.out.println("----------type name is: " + type.getName());
}
request.setAttribute("childtypes", childtypes);
前台显示:
<c:forEach items="childtypes" var="entry">
<li><a href="<html:rewrite action="/product/list"/>?sort=sellpriceasc&typeid=${entry.typeid}&sex=${param.sex }&brandid=${param.brandid}&style=${param.style}">${entry.name }</a></li>
</c:forEach>
并且在ProductType类里是有typeid属性的,
结果还是报这个错!
解决方案:
<c:forEach items="childtypes" var="entry">
改为:
<c:forEach items="${childtypes}" var="entry">
- Property 'typeid' not found on type java.lang.String
- Property 'typeid' not found on type java.lang.String
- javax.el.PropertyNotFoundException: Property 'typeId' not found on type java.lang.String
- Property 'name' not found on type java.lang.String
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'id' not found on type java.lang.String问题
- Property 'xx' not found on type java.lang.String问题解决
- Property 'id' not found on type java.lang.String
- Property 'xxx' not found on type java.lang.String
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'id' not found on type java.lang.String
- Property 'pid' not found on type java.lang.String
- 异常:Property 'name' not found on type java.lang.String,attribute items does not accept any
- 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
- STL入门资料
- 关于“哥和寂寞”的语录
- 查找最新的文件并导出
- October 14th Wednesday
- 打开快捷方式指向的目录
- Property 'typeid' not found on type java.lang.String
- 弹出光驱
- sql script
- 断开网络连结
- 动感地带亲情套餐
- 认识C#四种判断相等的方法
- 给每个盘添加卷标
- 标题:函数指针和指针函数
- sqlite3 学习 记录