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" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >


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


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



Reply via email to