Try this too:
<bean:define id="l" name="myObject" property="list" />
<logic:iterate id="obj" name="l">
...
</logic:iterate>
When I was trying to pass in a list to a tile, I ran into a similar
problem, but I was trying to pass in the list using an EL expression in
the "value" attribute of the tiles' <tile:put/> tag. I discovered I had
to use the "beanName" and "beanProperty" attributes which are similar to
the "name" and "property" attributes in the <bean:define> tag.
--Keith
Gareth Evans wrote:
try
<bean:define id="l" value="myObject.list"/>
<logic:iterate id="obj" name="l">
...
</logic:iterate>
Gareth
Gary Feidt wrote:
Are you storing myList on a form?
Gary
[EMAIL PROTECTED] 1/20/2006 12:37:18 AM >>>
Hi, I am using struts taglib. I have a object like
public class myObject{
List myList;
List getList(){
return myList;
}
...
}
The myObject is send through aciton to the jsp. In my
jsp, I have:
...
<bean:define id="l" value="myObject.list"/>
<logic:iterate id="obj" collection="l">
...
</logic:iterate>
But it complains that " Cannot create iterator for
this collection" which means myList is not reconginzed
as a list.
What is wrong?
Thanks,
qq
__________________________________
Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or
proprietary information and may be used only by the person or entity
to which it is addressed. If the reader of this email/fax is not the
intended recipient or his or her agent, the reader is hereby notified
that any dissemination, distribution or copying of this email/fax is
prohibited. If you have received this email/fax in error, please
notify the sender by replying to this message and deleting this email
or destroying this facsimile immediately.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-----------------------------------------------------------------
Keith Fetterman 206-780-5670
Mariner Supply, Inc. [EMAIL PROTECTED]
http://www.go2marine.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]