Hi all, I have a problem and i don't know how to solve it. I am going to explain it you in order you may help me.
I have a bean (A BEAN) with several private attributes. One of them is a
ID attribute that references another bean class (B BEAN) (i can get this
bean using a getBClassById method).
So, in my jsp file I have something like this:
<logic:iterate id="itemEntry" name="itemMap">
<bean:define id="item" name="itemEntry" />
<tr>
<t"><bean:write name="item" property="id" /></td>
<td>XXXXXX</td>
<td><bean:write name="item" property="priority" /></td>
<td"><bean:write name="item" property="state" /></td>
<td>XXXXXX</td>
<td>XXXXXX</td>
</tr>
</logic:iterate>
XXXXXX represents the B bean data which is related with the A bean in
that iteration. But I don't know how to get the B bean who is
represented by the A bean in each iteration. The 'item' bean has a
attribute B_ID, which allows me to get (using getBClassById() method)
its B Bean.
I generate the itemMap collection in a Action in the following way:
ItemDaoInterface itemDao = ItemDaoFactory.create();
List items = itemDao.getItemList();
request.setAttribute("itemMap", items);
How do you do this? Can you help me with this problem? I don't know if I
have to use nested tags, o maybe generate another collection with the B
beans... i don't know :S
Thanks.
--
Mariano Garc�a Gonz�lez :: Ingeniero de Sistemas
----------------------------------------------------
OPTIVA MEDIA PGP 0x89E8E4CE
c/ Musgo 2
Ed. Europa II
280023 Madrid (Espa�a)
t. +34 91 297 72 71
f. +34 91 297 72 72
www.optivamedia.com
� This message is printed on 100% recycled electrons.
signature.asc
Description: This is a digitally signed message part

