I have a list of users and I would like to iterate over this list twice in a
page. However in the following code snippet, The list is iterated only once and
the second iterator displays nothing.
<p>Table 1</p>
<table cellspacing="1" cellpadding="0" class="basic-table" width="100%">
<tr class="gray-med-dark">
<th nowrap="nowrap" scope="col">user id</th>
<th nowrap="nowrap" scope="col">user name</th>
</tr>
<s:iterator value="users" id="u" status="status">
<tr >
<td><s:property value="#u.id" /></td>
<td><s:property value="#u.name" /></td>
</tr>
</s:iterator>
</table>
<p>Table 2</p>
<table cellspacing="1" cellpadding="0" class="basic-table" width="100%">
<tr class="gray-med-dark">
<th nowrap="nowrap" scope="col">user id</th>
<th nowrap="nowrap" scope="col">user name</th>
</tr>
<s:iterator value="users" id="u" status="status">
<tr >
<td><s:property value="#u.id" /></td>
<td><s:property value="#u.name" /></td>
</tr>
</s:iterator>
</table>
In the second iterator I even renamed the id to u1 but of no avail. I think in
the first iterator all the user objects are pushed on the top of stack hence
users is not availabe on the second iterator. I would appreciate any hints on
how to achieve this.
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]