Thanks for your nice hint:
I did the following, but the results were not displayed:
products is a collection of ArrayLists, every arrayList contains
a list of ProductBeans, ProductBean has productName and productId properties.
products are retrieved in action class and are put into session scope:
session.setAttribute("products", products);
var productsArray = new Array();
<logic:iterate id = "aList" name = "products" indexId = "idx">
<logic:iterate id = "ProductBean" name = "aList" indexId = "index">
productsArray[<%=idx%>][<%=index%>]
= new Array(<bean:write name = "ProductBean" property = "productName"/>,
<bean:write name = "ProductBean" property = "productId"/> ;
</logic:iterate>
</logic:iterate>
One extra question, do products collection need to conform to JavaBean convention for doing this kind of task?
I appreciate your help.
[ July 25, 2003: Message edited by: rick collette ]