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]



--
Gareth Evans

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:    +44 (0)870 0100 704
Fax:    +44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:    www.msoft.co.uk

----------------------------------------------
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
----------------------------------------------
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to