用struts2标签循环显示list内容,
首次进入很正常,但是添加过一条信息之后,在次进入页面时,就不遍历该list了
用debug追查代码的时候发现list还在,
用firebug查看页面的时候,发现页面用iterator标签不见了,
大神们路过看下
首次进入很正常,但是添加过一条信息之后,在次进入页面时,就不遍历该list了
用debug追查代码的时候发现list还在,
用firebug查看页面的时候,发现页面用iterator标签不见了,
大神们路过看下
<s:iterator value="originalPropList" status="num">
<TR>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center><SPAN class=STYLE19>
<s:property value="1"/></SPAN></DIV></TD>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center><SPAN class=STYLE19><s:property value="websiteName"/>(<s:property value="websiteID"/>)</SPAN></DIV></TD>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center><SPAN class=STYLE19><s:property value="originalID"/></SPAN></DIV></TD>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center><SPAN class=STYLE19><s:property value="pName"/>(<s:property value="pid"/>)</SPAN></DIV></TD>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center><SPAN class=STYLE19><s:property value="name"/></SPAN></DIV></TD>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center><SPAN class=STYLE19><s:property value="odesc"/></SPAN></DIV></TD>
<TD class="STYLE6" bgColor="#ffffff" height="20"><DIV align=center>
<a onclick="return confirm('确定要注销吗?')" href="<s:url action="cancleOriginalProp.action">
<s:param name="originalProp.opid" value="opid" />
<s:param name="cpc.productCategoryID" value="cpc.productCategoryID" />
<s:param value="prop.pid" name="prop.pid"></s:param>
</s:url>" target="content3">注销</a>
<a onclick="return confirm('确定要删除吗?')" href="<s:url action="deleteOriginalProp.action">
<s:param name="originalProp.opid" value="opid" />
<s:param name="cpc.productCategoryID" value="cpc.productCategoryID" />
<s:param value="prop.pid" name="prop.pid"></s:param>
</s:url>" target="content3">删除</a>
</DIV></TD>
</TR> </s:iterator>
这是页面的iterator
在进行任何action之后,这个iterator就消失了,首次很正常
在进行任何action之后,这个iterator就消失了,首次很正常 , 这个描述比较不明白