首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Cannot find bean XXX in any scope 什么原因呢

2012-10-31 
Cannot find bean XXX in any scope 什么原因呢?我的jsp页面如下:logic:iterate idhello nameform2

Cannot find bean XXX in any scope 什么原因呢?
我的jsp页面如下:<logic:iterate id="hello" name="form2">
       <tr>
<td><bean:write name="hello" property="jobName"/></td>
       </tr>
</logic:iterate>

struts-config.xml配置为:
<action path="/cr/select/page"
type="org.springframework.web.struts.DelegatingActionProxy"
name="insertForm"
input="/page/user/select/select.jsp"
validate="false"
scope="session">
<forward name="page" path="/page/user/cr/select.jsp"redirect="false"></forward>
</action>

action文件是:
         InsertForm form2=new InsertForm();
         Long jobName = ((InsertForm)form).getJobName();
request.getSession(true).setAttribute("jobName", form2);

为什么老是出那样的错误呢??

热点排行