关于jsp页面struts标签<logic:iterate >和jsp标签<jsp:include>结果使用问题

问题如下:一个<logic:iterate>里面包含<jsp:include>,但是在被包含页面无法取到list中取出来的对象。如:<logic:iterateid="g... 问题如下:
一个<logic:iterate >里面包含<jsp:include>,但是在被包含页面无法取到list中取出来的对象。如:<logic:iterate id="guItemAcciListDto" name="guItemAcciListDtoList" >
<INPUT type="hidden" name="policyNo"
value="<bean:write name="guItemAcciListDto" property="endorNo" filter="true"/>">
<jsp:include page="/prpall/modules/uploadpersonlist/PersonInfoDetail.jsp" />
</logic:iterate>
被包含页面部分代码:<INPUT name="guItemAcciListDtoClientEName" class="codename" value="<bean:write name="guItemAcciListDto" property="clientEName" filter="true"/>">

在执行时会提示
javax.servlet.jsp.JspException: Cannot find bean: "guItemAcciListDto" in any scope

问题是处在被包含页面中无法取得guItemAcciListDto。
请问这是为什么,请高手提供好的解决方案。
这个在包含页面,也就是在迭代标签内部直接写
:<INPUT name="guItemAcciListDtoClientEName" class="codename" value="<bean:write name="guItemAcciListDto" property="clientEName" filter="true"/>">

这样是可以获取值的。但到了<jsp:include>包含的页面中就不行了。作用域 request
展开
 我来答
汉语豆腐
2012-09-03
知道答主
回答量:28
采纳率:0%
帮助的人:11.6万
展开全部
首先你确定将guItemAcciListDto放到session或者request的范围中,如果放在request范围,只能使用转发不能使用重定向
realslefs
2012-09-03
知道答主
回答量:37
采纳率:0%
帮助的人:8万
展开全部
在这里要知道作用域在什麼地方 是找不到这个guItemAcciListDto作用域
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式