I think you need to say name=roles instead of collection=roles.
Assuming there is as roles.getValue() accessor, the rest looks fine.
If not, you may just need bean:write:element if the objects in roles
have a toString() method.
Simon Liang wrote:
Hi:
Can someone help with this? I can't
logic:iterate id=element collection=roles
should be
logic:iterate id=element name=roles
--- Simon Liang [EMAIL PROTECTED] wrote:
Hi:
Can someone help with this? I can't find an example whether struts
iterate
throught a collection.
! The code
/logic:iterate
!---End The code %
Simon
-Original Message-
From: Shoulico [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: iterate collection
logic:iterate id=element collection=roles
should
!---End The code %
Simon
-Original Message-
From: Shoulico [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: iterate collection
logic:iterate id=element collection=roles
should be
logic:iterate id
4 matches
Mail list logo