Cannot find bean in any scope
来源:互联网 发布:股票买卖点软件 编辑:程序博客网 时间:2024/05/22 01:58
在Action里,当我使用request.getSession().setAttribute("dtos",objects);
在页面里使用:
<logic:iterate id="openType" name="dtos">
<bean:write name="openType" property="typeNo"/>
<bean:write name="openType" property="manageType"/>
</logic:iterate>
页面显示正常.
但是当我在Action里使用request.setAttribute("dtos",objects);
页面就报错:
org.apache.jasper.JasperException: Cannot find bean dtos in any scope
这种写法是不太完善:
<logic:present name="dtos" scope="session" >
<logic:iterate id="openType" name="dtos" scope="session">
<bean:write name="openType" property="typeNo"/>
<bean:write name="openType" property="manageType"/>
</logic:iterate>
</logic:present>
可能的错误出现在:
session 域中没有这个object
这几个标签寻找bean的顺序可以是通过多个域中来的,
您必须指定scope属性,具体是哪个标签使用,查一下doc就行了
- Cannot find bean in any scope
- Cannot find bean: "serivceList" in any scope
- Cannot find bean: "test" in any scope
- Cannot find bean userinfo in any scope
- Cannot find bean in any scope
- Cannot find bean: "EmpNumber" in any scope
- Cannot find bean beanList in any scope错误
- Struts常见异常“Cannot find bean XXX in any scope”
- 出现Cannot find bean name in any scope的解决办法
- Cannot find bean org.apache.struts.taglib.html.BEAN in any scope异常解决方案
- Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
- Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope
- Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
- Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope
- Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
- Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
- Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
- struts的异常: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
- joomla
- CAT TABS SYN DICT in Oracle
- diskgenius重建分区表
- 我要每天进步多一点系列: javascript-定时器setTimeout使用心得
- 探求真理的代价
- Cannot find bean in any scope
- windows sdk编程遇到奇怪的问题
- fedora 中开始菜单的编辑
- javascript零基础学习
- 测试
- 史上最简单精准的浏览器版本测试
- Android ubuntu 开发环境安装
- Android开发工具总结
- 会话和进程组(转载)