struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lister, Tom (ANTS)" <tom.lis...@ants.co.uk>
Subject RE: How to use nested:iteration tag?
Date Wed, 04 Sep 2002 15:44:29 GMT
I'd expect it to work as the nested iterate tag seems to extend the basic
iterate tag, but I'm just struggling with the usage
possible i'm too thick to be using open source tools
doco says it's a bean in page scope, not clear what exactly that implies.
what sort of bean or what methods should it provide.
Struggling to find any helpful docs on keyboardmonkey or jakarta/struts
sites

:-)
Tom Lister
* 020 7612 3030
* tom.lister@ants.co.uk


-----Original Message-----
From: Michael [mailto:michael@idtect.com]
Sent: 04 September 2002 16:26
To: 'Struts Users Mailing List'
Subject: RE: How to use nested:iteration tag?


With logic:iterate you can use indexId="myIndex" to name the index and
have access to it.  I'm not sure if this works with nested:iterate.

> -----Original Message-----
> From: Lister, Tom (ANTS) [mailto:tom.lister@ants.co.uk] 
> Sent: Wednesday, September 04, 2002 5:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: How to use nested:iteration tag?
> 
> 
> do you know how to get at the index of the item in the iteration
> :-)
> Tom Lister
> * 020 7612 3030
> * tom.lister@ants.co.uk
> 
> 
> -----Original Message-----
> From: Sri Sankaran [mailto:Sri.Sankaran@sas.com]
> Sent: 04 September 2002 16:08
> To: Struts Users Mailing List
> Subject: RE: How to use nested:iteration tag?
> 
> 
> That's exactly what I do :)
> 
> > -----Original Message-----
> > From: Michael [mailto:michael@idtect.com]
> > Sent: Wednesday, September 04, 2002 11:00 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: How to use nested:iteration tag?
> > 
> > 
> > > Somewhere in the nested docs it says to have a getter 
> that returns 
> > > an Object[].  So, if your bean has a collection called 
> 'plants' then 
> > > set the getter as follows:
> > > 
> > >   public Object[] getPlants() {
> > >     return plants.toArray();
> > >   }
> > 
> > As a temporary workaround, I am doing this:
> > 
> >     public Set getMachines(){ return machines; }
> >     public Object[] getMachinesArray(){ return
> > getMachines().toArray(); }
> > 
> > And the in the JSP I use:
> > 
> >     <nested:iterate property="plantsArray">
> > 
> > Not very elegant because I had to do this for all my business
> > objects (i'm not using value objects).  But at least I can 
> > keep Collections for use in the business layers.
> > 
> > Michael
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands, 
> > e-mail: <mailto:struts-user-help@jakarta.apache.org>
> > 
> > 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> **************************************************************
> *************
> 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-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


***************************************************************************
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-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message