You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/08/08 10:10:03 UTC
index no of table item when using iterate?
Subject: index no of table item when using iterate?
From: "Hu Ji Rong" <hu...@yahoo.com>
===
Document says indexId is the bean contains index of current element, but
what is the property of this bean? I am using the following approach in jsp
but the index start from 0.
What is the right way to print the index of table item if I want to start
from 1 for example?
Thanks,
JiRong
<logic:iterate id="docSource" indexId="no" name="CountryDocSourceForm"
property="docSourceList" scope="session"
type="net.lido.aims.interimdb.domain.specific.DocSourceDTO">
<!--logic:iterate id="docSource" name="docSourceList" scope="session"
type="net.lido.aims.interimdb.domain.specific.DocSourceDTO"-->
<tr class="dynTrBgColor entryFont">
<td class="dynTdBgColor entryFont"><bean:write name="no"
filter="true"/></td>
<td class="dynTdBgColor entryFont"><bean:write name="docSource"
property="fileName" filter="true"/></td>
<td class="dynTdBgColor entryFont"><bean:write name="docSource"
property="ICAOCodeList" filter="true"/></td>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>