You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael <mi...@idtect.com> on 2002/09/04 13:26:39 UTC

How to use nested:iteration tag?

This works:

<logic:iterate id="plants" indexId="myIndex" name="USER"
property="company.plants" scope="session">
</logic:iterate>

But this does not:

<nested:iterate id="plant" name="USER" property="company.plants"
scope="session">
</nested:iterate>

I get:

[Exception in:/jsp/status/subsystem_list.jsp] null 

Can someone please tell me if I'm using the nested:iterate tag properly?
There aren't any examples for this and the struts documentation just
says to see logic:iterate.

Michael




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to use nested:iteration tag?

Posted by Michael <mi...@idtect.com>.
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to use nested:iteration tag?

Posted by Rejin NS <re...@pitsolutions.com>.
http://www.keyboardmonkey.com/downloads/index.jsp


----- Original Message -----
From: "Michael" <mi...@idtect.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>; "'Rejin
NS'" <re...@pitsolutions.com>
Sent: Wednesday, September 04, 2002 5:28 PM
Subject: RE: How to use nested:iteration tag?


> I've read the entire site and did not find any examples for this.  Do
> you have a specific URL?
>
> > -----Original Message-----
> > From: Rejin NS [mailto:rejin@pitsolutions.com]
> > Sent: Wednesday, September 04, 2002 1:58 PM
> > To: Struts Users Mailing List
> > Subject: Re: How to use nested:iteration tag?
> >
> >
> > the usage is not correct. there is a good example at:
> > http://www.keyboardmonkey.com -rjn
> > ----- Original Message -----
> > From: "Michael" <mi...@idtect.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Wednesday, September 04, 2002 4:56 PM
> > Subject: How to use nested:iteration tag?
> >
> >
> > > This works:
> > >
> > > <logic:iterate id="plants" indexId="myIndex" name="USER"
> > > property="company.plants" scope="session"> </logic:iterate>
> > >
> > > But this does not:
> > >
> > > <nested:iterate id="plant" name="USER" property="company.plants"
> > > scope="session"> </nested:iterate>
> > >
> > > I get:
> > >
> > > [Exception in:/jsp/status/subsystem_list.jsp] null
> > >
> > > Can someone please tell me if I'm using the nested:iterate tag
> > > properly? There aren't any examples for this and the struts
> > > documentation just says to see logic:iterate.
> > >
> > > Michael
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to use nested:iteration tag?

Posted by Bunty <gp...@gpuri.com>.
Have you included the tld file in your jsp as well as web.xml ?

----- Original Message -----
From: "Michael" <mi...@idtect.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>; "'Rejin
NS'" <re...@pitsolutions.com>
Sent: Wednesday, September 04, 2002 6:58 AM
Subject: RE: How to use nested:iteration tag?


> I've read the entire site and did not find any examples for this.  Do
> you have a specific URL?
>
> > -----Original Message-----
> > From: Rejin NS [mailto:rejin@pitsolutions.com]
> > Sent: Wednesday, September 04, 2002 1:58 PM
> > To: Struts Users Mailing List
> > Subject: Re: How to use nested:iteration tag?
> >
> >
> > the usage is not correct. there is a good example at:
> > http://www.keyboardmonkey.com -rjn
> > ----- Original Message -----
> > From: "Michael" <mi...@idtect.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Wednesday, September 04, 2002 4:56 PM
> > Subject: How to use nested:iteration tag?
> >
> >
> > > This works:
> > >
> > > <logic:iterate id="plants" indexId="myIndex" name="USER"
> > > property="company.plants" scope="session"> </logic:iterate>
> > >
> > > But this does not:
> > >
> > > <nested:iterate id="plant" name="USER" property="company.plants"
> > > scope="session"> </nested:iterate>
> > >
> > > I get:
> > >
> > > [Exception in:/jsp/status/subsystem_list.jsp] null
> > >
> > > Can someone please tell me if I'm using the nested:iterate tag
> > > properly? There aren't any examples for this and the struts
> > > documentation just says to see logic:iterate.
> > >
> > > Michael
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to use nested:iteration tag?

Posted by Robert Taylor <rt...@mulework.com>.
Michael,

I used the <nested:iterate .../> tag quite often.

If I have a form bean with a data member called "results" which is a
Collection of
LabelValue beans (a bean which has two string fields 'label' and 'value'). I
would
use the <nested:iterate .../> as follows to print 'label' = 'value'.

<html:form action="/someAction">

<nested:iterate id="element" property="results">
<bean:write name="element" property="label"/>=<bean:write name="element"
property="value"/><br>
<nested:iterate>

</html:form>

HTH,

robert

> -----Original Message-----
> From: Michael [mailto:michael@idtect.com]
> Sent: Wednesday, September 04, 2002 7:58 AM
> To: 'Struts Users Mailing List'; 'Rejin NS'
> Subject: RE: How to use nested:iteration tag?
>
>
> I've read the entire site and did not find any examples for this.  Do
> you have a specific URL?
>
> > -----Original Message-----
> > From: Rejin NS [mailto:rejin@pitsolutions.com]
> > Sent: Wednesday, September 04, 2002 1:58 PM
> > To: Struts Users Mailing List
> > Subject: Re: How to use nested:iteration tag?
> >
> >
> > the usage is not correct. there is a good example at:
> > http://www.keyboardmonkey.com -rjn
> > ----- Original Message -----
> > From: "Michael" <mi...@idtect.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Wednesday, September 04, 2002 4:56 PM
> > Subject: How to use nested:iteration tag?
> >
> >
> > > This works:
> > >
> > > <logic:iterate id="plants" indexId="myIndex" name="USER"
> > > property="company.plants" scope="session"> </logic:iterate>
> > >
> > > But this does not:
> > >
> > > <nested:iterate id="plant" name="USER" property="company.plants"
> > > scope="session"> </nested:iterate>
> > >
> > > I get:
> > >
> > > [Exception in:/jsp/status/subsystem_list.jsp] null
> > >
> > > Can someone please tell me if I'm using the nested:iterate tag
> > > properly? There aren't any examples for this and the struts
> > > documentation just says to see logic:iterate.
> > >
> > > Michael
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How to use nested:iteration tag?

Posted by Michael <mi...@idtect.com>.
I've read the entire site and did not find any examples for this.  Do
you have a specific URL?

> -----Original Message-----
> From: Rejin NS [mailto:rejin@pitsolutions.com] 
> Sent: Wednesday, September 04, 2002 1:58 PM
> To: Struts Users Mailing List
> Subject: Re: How to use nested:iteration tag?
> 
> 
> the usage is not correct. there is a good example at: 
> http://www.keyboardmonkey.com -rjn
> ----- Original Message -----
> From: "Michael" <mi...@idtect.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Wednesday, September 04, 2002 4:56 PM
> Subject: How to use nested:iteration tag?
> 
> 
> > This works:
> >
> > <logic:iterate id="plants" indexId="myIndex" name="USER" 
> > property="company.plants" scope="session"> </logic:iterate>
> >
> > But this does not:
> >
> > <nested:iterate id="plant" name="USER" property="company.plants" 
> > scope="session"> </nested:iterate>
> >
> > I get:
> >
> > [Exception in:/jsp/status/subsystem_list.jsp] null
> >
> > Can someone please tell me if I'm using the nested:iterate tag 
> > properly? There aren't any examples for this and the struts 
> > documentation just says to see logic:iterate.
> >
> > Michael
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to use nested:iteration tag?

Posted by Rejin NS <re...@pitsolutions.com>.
the usage is not correct. there is a good example at:
http://www.keyboardmonkey.com
-rjn
----- Original Message -----
From: "Michael" <mi...@idtect.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, September 04, 2002 4:56 PM
Subject: How to use nested:iteration tag?


> This works:
>
> <logic:iterate id="plants" indexId="myIndex" name="USER"
> property="company.plants" scope="session">
> </logic:iterate>
>
> But this does not:
>
> <nested:iterate id="plant" name="USER" property="company.plants"
> scope="session">
> </nested:iterate>
>
> I get:
>
> [Exception in:/jsp/status/subsystem_list.jsp] null
>
> Can someone please tell me if I'm using the nested:iterate tag properly?
> There aren't any examples for this and the struts documentation just
> says to see logic:iterate.
>
> Michael
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>