<s:iterator value="p2pBasicInformation" id='BasicInfor' status='st'>
<s:iterator value="getProductLabel(#BasicInfor.productCode)" id = "label" status="s">
<span class="p2pTag"><s:property value="label"/></span>
</s:iterator>
</s:iterator>
其中p2pBasicInformation为后台传过来的List,#BasicInfor.productCode为list中对象的属性,getProductLabel(#BasicInfor.productCode)以该属性作为参数调用action中的getProductLabel(String productCode)方法,该方法返回一个String[]数组,再遍历改数组的值,就OK了。
1万+



被折叠的 条评论
为什么被折叠?



