Ah perfect. I looked at the tag reference on the struts2 page and there was the var attribute. I'm actually using 2.0.8. So this can not work :-)
Thank you very much :-) Marc 2007/12/4, Dave Newton <[EMAIL PROTECTED]>: > > S2.0.mumble uses the "id" attribute to name the current iteration object. > S2.1 uses "var". Depends on what version you're using, I guess. > > d. > > --- Marc Eckart <[EMAIL PROTECTED]> wrote: > > > I tried this with the var in the iterator tag and tomcat e.g. jasper > > complained about that var is not defined in the tag. Is it deprecated or > > new > > or something like this. Maybe I have to update my struts jar? > > > > Marc > > > > 2007/12/4, Dave Newton <[EMAIL PROTECTED]>: > > > > > > Sure. > > > > > > Did you try it and had an issue, or did you think it would be quicker > to > > > wait > > > for a response on the list? > > > > > > d. > > > > > > --- Marc Eckart <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > > > I have a common problem :-) I have a collection of Objects and these > > > > Objects > > > > also contains Collections. How can I iterate through the child > > > collection? > > > > > > > > Something like this: > > > > > > > > <s:iterator value="accountSearchResults.accounts" > > > > status="rowstatus" > > > > var="account"> > > > > > > > > > > > > <s:iterator value="#account.attorneys" > status="rowstatus" > > > > var="attorney"> > > > > > > > > </s:iterator> > > > > > > > > </s:iterator> > > > > > > > > > > > > Is this possible? > > > > > > > > Best Regards, > > > > Marc > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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] > >