struts中action中request作用域的问题
RawDataAction.java中有request.setAttribute("ls", rawList);
request.setAttribute("soilName",soilName);
shang.jsp源码中有:
<td width="200"><input type="text" readonly="readonly" value="${ soilName }" id="soil"></td>
xia.jsp源码中有:
<%@ taglib uri="http://struts. prefix="logic" %>
<logic:iterate name="ls" indexId="index" id="tmp">
zhengti.jsp源码中有:
<frameset rows="187,11%">
<frame src="../rawdata/shang.jsp"/>
<frame src="../rawdata/xia.jsp" />
</frameset><noframes></noframes>
</html>
struts-config.xml配置文件中有:
<action path="/sys/rawdata"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="/rawdata/zhengti.jsp"></forward>
<forward name="fail" path="/raw/fail.jsp"></forward>
</action>
actionContext.xml中有:
<bean name="/sys/rawdata"
class="com.guo.app.web.struts.action.rawdata.RawDataAction">
<property name="rawService" ref="rawService"></property>
<property name="cropService" ref="cropService"></property>
</bean>
现在的问题是,在加载zhengti.jsp时,找不到ls这个bean,请问怎么解决?