It isn't part of Struts. It is defined in the tag libraries of the nested extension. So the <nested:xyz> will work if you have the nested jars and tag lib descriptors installed.
Sri -----Original Message----- From: Darren McGuinness [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:26 AM To: Struts Users Mailing List Subject: Re: Nesting beans but the tag 'nested' isn't that only in 1.1 onwards? i cant find it in the 1.0 api.... Sri Sankaran wrote: > When you are using the nested extension remember to use the > <nested:xyz> tags as opposed to the <html:xyz> tags. > > Now, if you have a collection of SessionBean objects in your LoginBean > your jsp would have something like: > > <nested:iterate property="nameOfVectorIVar"> > <nested:write property="requestId"/> > </nested:iterate> > > Note that the <nested:write> doesn't need a reference to the session > bean! It simply introspects the current item in the collection (in > this case a SessionBean object) for a public method called > getRequestId(). > > Hope that helped > > Sri > > -----Original Message----- > From: Darren McGuinness [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 9:51 AM > To: [EMAIL PROTECTED] > Subject: Nesting beans > > I have seen in documentation that Struts 1.1 supports nesting tags. > However, I'm using struts 1.0(unavoidable), and I'm looking to > implement nesting in the beans, and can't find any concrete examples. > > I have a LoginForm bean, and within this bean have an attribute > "session" of type SessionBean (another bean i've made). I've seen an > example(http://www.keyboardmonkey.com/next/Primer_partTwo.jsp?content=yesplease) > > showing the way you access in a JSP is: > > <html:text name="logonBean" property="session.requestId"/> to > access the 'requestId' attribute in the SessionBean. > > my question now is, if this actually works, how can you have an attribute which is a >vector/list of SessionBeans; do I just declare an attribute like so: > vector session; > and have add/remove/get/set methods for it? > > then do i access each SessionBean like so: > <html:text name="logonBean" property="session[0].requestId"/> ? > > cheers > > -- > To unsubscribe, e-mail: <mailto:[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]> -- To unsubscribe, e-mail: <mailto:[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]>