I have a list products with these attributes :
- Identifier
- Color
- Size
- Supplier
Supplier attribute is an object that has these attributes :
- Name
- Phone
For each product in my list, i'd like to display the identifier & the supplier name. How can i do this with struts / jstl ?
Here is what i'm trying with no success :
<s:iterator value="products">
<tr>
<td><s:property value="identifiant"/></td>
<td><s:property value="supplier.name"</td>
</tr>
</s:iterator>
There should be getters for each attribute. If the
products
is the property of theAction
class then it should haveIn the
Product
classIn the
Supplier
classIn JSP