//psuedo code. List categoryList = Category.getList();
request.setAttribute("categories", categoryList.toArray());
<logic:iterate id="category" name="categories">
</logic:iterate>I made the first bit up. But should give you the idea.
<jsp:useBean id="categories" class="com.cnw.portal.database.Category_VO" scope="request" />
may do what you want.. Depends on what methods you've got in there..
Cheers Mark
On 24 Dec 2003, at 18:23, e-denton Java Programmer wrote:
Sorry to bother you with an easy question, but I can't find the answer.
I want to iterate over Category_VO[] which is stored in a session attribute.
I read that it can be done, but I can't find an example for raw arrays.
Here's what I have (which probably doesn't even make sense):
<logic:iterate id="category" collection="com.cnw.portal.database.Category_VO" type="com.cnw.portal.database.Category_VO" scope="session"> <p> <bean:write name="category" property="shortTitle"/> </logic:iterate>
Thanks!
will
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

