this should do the trick:

<logic:iterate id="secondaryListElements" name="secondaryList">
   <bean:write name="secondaryListElements" property="name" />
   <bean:write name="secondaryListElements" property="price" />
</logic:iterate>

this, of course, assumes that your "secondaryBean" has methods like getName(), 
getPrice() etc.

cheers,
pj


Malhotra, Amitkumar \(Exchange\)
Thu, 24 Nov 2005 21:23:34 -0800

Hello All,

Am stuck up with a simple problem and could not find solution to the same over 
the net

my DAO sets a list in the session , this list contains java bean classes, the 
action
class forwards the flow to a jsp page.

I want to iterate over the collection and read the java beans stored in the 
same using
struts logic tags but am unable to do so.

can some one help me out in this with a small code fragment.

my list name is 'secondaryList' and the java bean class it stores is called 
'secondaryBean', this bean class has properties such as 'name','price' etc 
set in it.

Thanks and Regards,
Amit Malhotra.




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

Reply via email to