当前位置: 代码迷 >> Java Web开发 >> struts中action中request作用域的问题
  详细解决方案

struts中action中request作用域的问题

热度:216   发布时间:2012-09-17 18:53:22.0
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.apache.org/tags-logic" 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,请问怎么解决?

搜索更多相关主题的帖子: struts  action  request  

----------------解决方案--------------------------------------------------------
  相关解决方案