struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Shirk <sh...@ncsa.uiuc.edu>
Subject Re: Nesting <logic:iterate>
Date Wed, 05 Mar 2003 16:19:39 GMT
The struts-nested taglib that ships with Struts.

At 06:05 PM 3/5/2003 +0200, you wrote:
>For adding <nested:root name="city"> which tag lib do I have to add?
>
>yaron
>----- Original Message -----
>From: "Andrew Shirk" <shirk@ncsa.uiuc.edu>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Sent: Wednesday, March 05, 2003 5:25 PM
>Subject: Re: Nesting <logic:iterate>
>
>
> > Try using the method I suggested in this message:
> > http://marc.theaimsgroup.com/?l=struts-user&m=104575299502257&w=2
> > At 03:53 PM 3/5/2003 +0100, you wrote:
> >
> > >Hi Sundar,
> > >
> > >I tried it both ways, but I _always_ get a Jsp compile error, saying
> > >that _jspx_xxx_1 is already defined, where xxx stands for the
> > >id-attribute (e.g. "element") of the inner <logic:iterate> !
> > >
> > > > I've had luck with patterns similar to what others have suggested, but
> > > > if you have plain lists or vectors inside lists or vectors.. a better
> > > > route to go is to try
> > > >       <logic:iterate id="row" name="bean" property="myproperty>
> > > >          <logic:iterate id="element" collection="<%= row %>"
>
> > > >                       <do something w/ element>
> > > >          </logic:iterate>
> > > >       </logic:iterate>
> > > > I don't happen to have my examples handy (I'm still at home :), but
> > > > hope you get the idea.
> > > >
> > > > As another person suggested if you have the inner "element" defined as
> > > > a bean property on the object bound to "row".. then you can use
> > > > name/property as well.
> > > >
> > > > The scoping gotchas of struts are plenty -- this is one of them that I
> > > > stumble across often :)
> > > >
> > > >
> > >
> > >--
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Mime
View raw message