Cathy,

Can you please make a very small example which reproduces the effect and
either attach the files to the mail or send it directly to me. I will try
to debug it by stepping through the struts sources and see why the iterate
only shows one entry.

Stefan
____________________________________________________________
Stefan Hoehn                                Computer Science Corporation
Phone  +49 (611) 142-22296      e-Business + Technology Center Central
Fax      +49 (611) 142-29513        Abraham-Lincoln-Park 1
Mobil    +49 (174) 3229853          65189 Wiesbaden
Mail     [EMAIL PROTECTED]        http://www.cscploenzke.de
____________________________________________________________


                                                                                       
                            
                    Cathy                                                              
                            
                    Osekizoglu           To:     Struts Users Mailing List 
<[EMAIL PROTECTED]>        
                    <hinbsls             cc:                                           
                            
                    @yahoo.ca>           Subject:     RE: Get only first value using 
logic:iterate                 
                                                                                       
                            
                    21.09.2002                                                         
                            
                    04:43                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    "Struts Users                                                      
                            
                    Mailing List"                                                      
                            
                                                                                       
                            
                                                                                       
                            





Thank you, Mark.
I confirmed, there are two items in my payments(Vector). When I iterate
over payments, I should get two records, but for some reason, I only get
the first one. Please help me.
The following is my part of my jsp file:
<tr>
<logic:iterate id="aPayment" name="payments" scope="session">
<td><bean:write name="aPayment" property="amount"></td>
<logic:iterate>
</tr>
In my action class, I have
HttpSession = request.getSession();
session.setAttribute("payments", payments);//in payments, I have two items.
This question seems simple. I spend lot of time trying to solve it, but no
success. Could anyone help me?
Thank you very much.
Cathy


  "Galbreath, Mark" <[EMAIL PROTECTED]> wrote: Someone please help
Cathy...I am leaving the office for the pub.

Thanks,
Mark

-----Original Message-----
From: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 3:47 PM
To: Struts Users Mailing List
Subject: RE: Get only first value using logic:iterate



Thank you, Mark.
I did exactly as what you did. But it can just get the first value. Any
ideas?
Thanks
"Galbreath, Mark" wrote:









or some variation of this, depending upon your data.

Mark

-----Original Message-----
From: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 3:20 PM
To: Struts Users Mailing List
Subject: RE: Get only first value using logic:iterate



Thank you, Galbreath, for your help. Unfortunately, I can't use

because I have many data on one row. Do you have any other solutions?
Thanks.
"Galbreath, Mark" wrote: try




-----Original Message-----
From: Cathy Osekizoglu [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 3:04 PM
To: Struts Users Mailing List
Subject: Get only first value using logic:iterate



Hi:

I am using the following to iterate over payments(Vector).
type="com.test.Payment">


In my action class, I have session.setAttribute("payments",payments);
When I run it, I can get only first item of payments. I am using Struts1.1.
What could be wrong? Please help me. Thanks.

Cathy





---------------------------------
Post your free ad now! Yahoo! Canada Personals

--
To unsubscribe, e-mail:
For additional commands, e-mail:



---------------------------------
Post your free ad now! Yahoo! Canada Personals

--
To unsubscribe, e-mail:
For additional commands, e-mail:



---------------------------------
Post your free ad now! Yahoo! Canada Personals

--
To unsubscribe, e-mail:
For additional commands, e-mail:



---------------------------------
Post your free ad now! Yahoo! Canada Personals





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to