本帖最后由 zzhps2 于 2009-06-24 20:01:01 编辑

解决方案 »

  1.   

    建议你在service里把数据整理好再循环,这样页面循环也不复杂,还便于阅读。
      

  2.   

    lz为什么不让dataList直接存放String,在页面循环输出久可以了。
      

  3.   

    理解楼主的意思,我现在也碰到一样的问题,在struts1里面可以实现:
    <logic:iterate id="displayItem" name="<%= Constants.DISPLAYCBD0720ITEM%>" property="dispalyItemList" >
    <bean:define name="displayItem" property="itemId" id="itemKey" ></bean:define>
    <td width ="<bean:write name="displayItem" property="itemWidth"/>" class="<bean:write name="displayItem" property="itemAlign"/>">
        <bean:write name="item" property="${itemKey}" />&nbsp;
    </td>
    </logic:iterate>在struts2里面不知道怎么做?
    问题解决了的话,通知一下,或者互相讨论
      

  4.   

    方法有了,只是需要修改struts2核心包的struts-tags.tld文件,把property的value属性的<rtexprvalue>false</rtexprvalue>  false改成true