yep had that problem too
I changed my method signatures to ArrayList


:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2002 14:26
To: 'Struts Users Mailing List'
Subject: RE: How to use nested:iteration tag?


This doesn't make any sense.  I'm using java.util.Collection and I can't
provide a getPlant(int i) method because you can't access a Collection
like that.

Michael

> -----Original Message-----
> From: Lister, Tom (ANTS) [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, September 04, 2002 2:57 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How to use nested:iteration tag?
> 
> 
> it may mean what it says
> this confused me when i tried using the nested tags
> the bean properties i wanted to use needed indexed getters and setters
> 
> public void setJournalLineItems(int index, JournalLineVO 
> journalLineItem) public JournalLineVO getJournalLineItems(int index) 
> 
> as well as my original
> 
> public ArrayList getJournalLineItems()
> public void setJournalLineItems(ArrayList journalLineItems)
> 
> Do you know how to get hold of the indexId value inside the iteration
> 
> :-)
> Tom Lister
> * 020 7612 3030
> * [EMAIL PROTECTED]
> 
> 
> -----Original Message-----
> From: Michael [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2002 13:49
> To: 'Struts Users Mailing List'; 'Rejin NS'
> Subject: RE: How to use nested:iteration tag?
> 
> 
> After looking at some of the examples in the WAR files on the 
> keyboard monkey website, I made some progress.  The following works:
> 
> <nested:root name="USER">
>   <nested:nest property="company">
>     <nested:iterate property="plants">
>     </nested:iterate>
>   </nested:nest>
> </nested:root>
> 
> But when I try to go one level deeper:
> 
> <nested:root name="USER">
>   <nested:nest property="company">
>     <nested:iterate property="plants">
>         <nested:iterate property="machines">
>         </nested:iterate>
>     </nested:iterate>
>   </nested:nest>
> </nested:root>
> 
> I get:
> 
> Property 'plants' is not indexed 
> 
> Any ideas?
> 
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> **************************************************************
> *************
> This communication (including any attachments) contains 
> confidential information.  If you are not the intended 
> recipient and you have received this communication in error, 
> you should destroy it without copying, disclosing or 
> otherwise using its contents.  Please notify the sender 
> immediately of the error.
> 
> Internet communications are not necessarily secure and may be 
> intercepted or changed after they are sent.  Abbey National 
> Treasury Services plc does not accept liability for any loss 
> you may suffer as a result of interception or any liability 
> for such changes.  If you wish to confirm the origin or 
> content of this communication, please contact the sender by 
> using an alternative means of communication.
> 
> This communication does not create or modify any contract 
> and, unless otherwise stated, is not intended to be 
> contractually binding.
> 
> Abbey National Treasury Services plc. Registered Office:  
> Abbey National House, 2 Triton Square, Regents Place, London 
> NW1 3AN.  Registered in England under Company Registration 
> Number: 2338548.  Regulated by the Financial Services Authority (FSA).
> **************************************************************
> *************
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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


***************************************************************************
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***************************************************************************


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

Reply via email to