您的位置:首页 > 编程语言 > Java开发

struts1.2列表序号(index)从1开始

2011-03-24 15:52 337 查看
<logic:notEmpty name="list">
			   <logic:iterate id="item" name="list" indexId="index">
				   <tr onmouseover="this.className='over'" onmouseout="this.className='out'">
					  <td>
					       <%=Integer.parseInt(index.toString()) + 1%><!--或 ${index+1}-->
					  </td>
					  <td>
					       <bean:write name="item" property="productName"/>
					  </td>
				   <td>
					       <bean:write name="item" property="queryTime"/>
					  </td>
					  <td style="word-break:break-all" mce_style="word-break:break-all">
					       <bean:write name="item" property="callResult"/>
					  </td>
					  <td>
					      <bean:write name="item" property="ammount"/>
					  </td>
				  </tr>
			  </logic:iterate>
		   </logic:notEmpty>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: