Where do you have your </logic:iterate>

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



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