[1] action中 :
request.setAttribute("guidelineSouListInfo", guidelineSouColl);
guidelineSouColl经测试有值
JSP页面中:
<logic:iterate id="guidelineSouList" name="guidelineSouListInfo" type="com.strongit.financesys.datacenter.guidelinesou.GuidelineSouForm">
<tr valign="bottom" bgcolor="#FFFFFF">
<td nowrap="nowrap" width="20" align="center" bgcolor="#D6D3CE" class="biankuang">
<%=i++%>
</td>
<td>
<bean:write name="guidelineSouList" property="code" />
</td>
<td>
<bean:write name="guidelineSouList" property="name" />
</td>
</tr>
</logic:iterate>
<tr valign="bottom" bgcolor="#FFFFFF">
<td nowrap="nowrap" width="20" align="center" bgcolor="#D6D3CE" class="biankuang">
<%=i++%>
</td>
<td>
<bean:write name="guidelineSouList" property="code" />
</td>
<td>
<bean:write name="guidelineSouList" property="name" />
</td>
</tr>
</logic:iterate>
错误症状:
JSP页面中却没有列出想要得到的值
错误原因:
JSP页面中没有引用<%@include file="/WEB-INF/jsp/common/taglibs.jsp" %>[struts标签]