Hi,

I have one question regarding iterator. I have one simple list that contain 
three values:
List
{ id, value, date } and I'm iterating through this list. And I want to
show in my list a sum for value for every day at the last row that
contain that date, like this:

id__value___date_______sum
----------------------------------------------------------
1__10_____20.5.2008
2__15_____20.5.2008
3__15_____20.5.2008___40
4__12_____21.5.2008
5__15_____21.5.2008___27
6__12_____22.5.2008
...

I'm now have done all iterating except this sum column. Do you have any ideas 
how efficent can I do this ?

--
Thx, Milan Milanovic


--- On Thu, 6/5/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
From: Milan Milanovic <[EMAIL PROTECTED]>
Subject: [Struts 2] Iterator usage
To: user@struts.apache.org
Date: Thursday, June 5, 2008, 7:36 AM

Hi,

I have one question regarding iterator. I have one simple list that contain
three values:
List { id, value, date } and I'm iterating through this list. And I want to
show in my list a sum for value for every day at the last row that contain that
date, like this:

id    value    
date           
sum
----------------------------------------------------------
1   
10        
20.5.2008
2    15
       
20.5.2008
3   
15        
20.5.2008    40
4   
12        
21.5.2008
5    15
       
21.5.2008    27
6   
12        
22.5.2008
...

I'm now have done all iterating except this sum column. Do you have any
ideas how efficent can I do this ?

--
Thx, Milan Milanovic


      

Reply via email to