public List<ReportFormBeans> list = new ArrayList<ReportFormBeans>();
get set方法呢?

解决方案 »

  1.   

    JSP一片空白估计不是页面的事,楼主看看控制台报错了嘛,通常一片空白是你跳转有错误,STRUTS配置有问题,你Action最后的SUCCESS配置的页面地址是你的那个页面吗?如果页面有错误应该会报异常,你说的一片空白感觉就是路径没配对
      

  2.   


    <s:iterator id="rl" value="#request.xxList">
    <tr>
    <td>
    <s:property value="#rl.xxxx"/>
            </td>
            </tr>
    </s:iterator>
      

  3.   

    <s:iterator id="rl" value="#request.xxList">
        <tr>
            <td>
                <s:property value="#rl.xxxx"/>
                </td>
            </tr>
    </s:iterator>    
      

  4.   

    嗯果然是struts配置文件有问题<action name="toReportGetter" class="selectAction" method="toReportGetter">
    <result name="success" type="redirect">/select.jsp</result>
    <result name="input">/fail.html</result>
    </action> 把type="redirect"去掉迭代器就能用了,请问能帮我解释下为什么吗
      

  5.   

    <s:iterator value="list"> 
    <tr> 
    <td><s:property value="sid"/></td>
    </tr> 
    </s:iterator>
    中list换成Reportlist看看
      

  6.   

    嗯果然是struts配置文件有问题<action name="toReportGetter" class="selectAction" method="toReportGetter">
    <result name="success" type="redirect">/select.jsp</result>
    <result name="input">/fail.html</result>
    </action> 把type="redirect"去掉迭代器就能用了,请问能帮我解释下为什么吗
    之前的迭代器都不是这么配的,楼主你是看见有人这么配过吗?正常返回的List只要在页面的迭代器标签里写List的名字就可以了,没见过你这种写法
      

  7.   

    用type="dispatcher"吧,redirect是不能保存之前action里的数据的,我也犯过同样的错误。
    给你个链接,去看看: http://hi.baidu.com/foreverfly8/item/4bfae9cc04abb80c0bd93a79