<% java.util.ArrayList myList = new java.util.ArrayList();
myList.add("I");
myList.add("Love");
myList.add("Sparrows!!!!");pageContext.setAttribute("myList",myList);
%>
<logic:iterate id="foo" name="myList">
<bean:write name="foo" />
</logic:iterate>cheers mark
On Monday, Jun 2, 2003, at 20:07 Europe/Rome, Mike Jasnowski wrote:
Oop, sorry, I should have read your post more carefully, missed the ArrayList part.
-----Original Message----- From: Mike Whittaker [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 12:56 PM To: Struts Users Mailing List Subject: RE: tag newbie - easy question
As I thought but:
'No getter method for property myProperty of bean myList'
The ArrayList is a raw ArrayList, It isn't a wrapper.
myList
What goes in name="" to access a bean in the collection as specified below
collection is an ArrayList of beans, each bean has a getMyProperty() method
<logic:iterate id="myList" collection="<%= request.getAttribute("myList")
%>">
<bean:write name="" property="myProperty"/>
</logic:iterate>
Thankyou
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

