Adam,

Thanks for your quick response!

In my case, I'm not sure your suggestion would work. 

Here's the logic that I'd like to implement within <logic:iterate>

if it's the last row
  dispay <td align="center" style="border-right ...."><bean:write .....></td>
else
  display <td align="center"><bean:write ...></td>

My collection is an ArrayList, and it's pretty straight forward to achieve this logic 
by using array index and ArrayList.size() method. But, I don't know how to accomplish 
the same result within <logic:iterate>

Thanks,
Tuan

-----Original Message-----
From: Adam Sherman [mailto:adam@;teachandtravel.com]
Sent: Monday, October 21, 2002 10:49 AM
To: Struts Users Mailing List
Subject: Re: <logic:iterate> How to determine the last row in a
collection


Just to point out the obvious, but I assume you insert the border 
outside the iterate?

Tuan H. Le wrote:
> <logic:present name="myCollection" scope"request">
>   <logic:iterate id="data" name="myCollection" scope="request" 
>type="com.abc.MyCollectionVO" indexId="idx" length="10" offset="0">
>      // need logic to determine whether it's a last record in a collection
>      // if so, display the outline with border at the bottom
>   </logic:iterate>

Insert border here.

> </logic:present>

A.

-- 
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to