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
--
myList
-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 12:46 PM
To: Struts List
Subject: tag newbie - easy question
What goes in name= to access a bean in the collection as specified below
collection is an ArrayList of beans, each bean has
of code.
If you don't specify property attribute in the iterate tag then it assumes
you want to go to the request directly.
-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 12:46 PM
To: Struts List
Subject: tag newbie - easy question
What
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
make it easy on yourself and use the nested tags:
nested:iterate property=myList
nested:write property=myProperty/
/nested:iterate
-jeff
On Monday, June 2, 2003, at 11:46 AM, Mike Whittaker wrote:
What goes in name= to access a bean in the collection as specified
below
collection is
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
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
: Monday, June 02, 2003 2:08 PM
To: Struts Users Mailing List
Subject: RE: tag newbie - easy question
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
8 matches
Mail list logo