struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edgar Silva" <edgarankiev...@hotmail.com>
Subject Re: Printing nested properties
Date Thu, 05 Feb 2004 16:53:19 GMT
Hi Friends...

I will reply my question, because I get the correct way to solve it:

Is very simple:

<logic:iterate id="customer" name="customers">
    <logic:iterate id="sale" name="customer" property="sales">
    do something with beans
</logic:iterate>
</logic:iterate>

Anyway Thanks and any other idea will be appreciated.


regards

Edgar Silva

----- Original Message -----
From: "Edgar Silva" <edgarankievsky@hotmail.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Thursday, February 05, 2004 11:08 AM
Subject: Printing nested properties


folder structureHi Folks...

I have a situation where I have this model:

Customer

- name : String
- phone : String
- addr1 : String:
- addr2 : String
- sales: Vector (of following classe)


Sales
- date: Date
- paymentMethod: String
- value: Double


How can I present the properties from sales objects from Vector inside the
property sales from bean Customer?

I would like to present: customer.getSales().getPaymentMethod() , but I
wanna show with bean:write tag...

some idea?

since now...

Thanks

Edgar


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


Mime
View raw message