jsp页面代码如下:
<%@ taglib uri="/struts-tags" prefix="s2"%>
<s2:set name="payforlist" value="#request.payforlist"/>
<table border="0" width="670" cellspacing="0" cellpadding="5">
<tr height="35"><td style="text-indent:5" valign="bottom"><font color="#004790"><b>推荐信息</b>『缴费专区』</font></td></tr>
<tr bgcolor="#FAFCF5">
<td style="border:1 solid">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<s2:if test="${payinfoList==null || payinfoList.size()==0 }">
<tr height="30"><td align="center" style="border:1 solid"> 缴费后,您发布信息就可在这里显示!</td></tr>
</s2:if>
<s2:else>
<s2:iterator var="payinfo" items="${payinfoList }" varStatus="status">
<s2:if test="${status.index%2==0 }"><tr height="23"></s2:if>
<td width="50%">『<b><s2:property value=${payinfo.typeName }/></b>』<a href="info_SingleShow.action?id=<s2:property value='id'/>">${payinfo.title }</a></td>
<s2:if test="#payforStatus.even"></tr></s2:if>
</s2:iterator>
</s2:else>
</table>
但显示不出内容,怎么回事,请高手指点。谢谢!!
------解决思路----------------------
<s2:set name="payforlist" value="#request.payforlist"/>
这里value 的取值有问题,看payforlist性质