Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 1281 invoked from network); 30 Mar 2006 16:36:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2006 16:36:39 -0000 Received: (qmail 71958 invoked by uid 500); 30 Mar 2006 16:36:37 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 71936 invoked by uid 500); 30 Mar 2006 16:36:36 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 71925 invoked by uid 99); 30 Mar 2006 16:36:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 08:36:36 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.162.51.5] (HELO pandore.ircm.priv) (207.162.51.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 08:36:35 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C65418.10384BA4" Subject: Re: Nested iterate tags Date: Thu, 30 Mar 2006 11:36:15 -0500 Message-ID: <5820E7E2A928DB46824297946AC2024A3AAD1B@pandore.ircm.priv> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Nested iterate tags Thread-Index: AcZUGBASrpHNlfDOSa2xecl2O99sHA== From: "Poitras Christian" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C65418.10384BA4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've in front of this problem myself. It seems that in a future version of iBatis, this bug will be corrected by adding a "var" attribute in iterate tag. =20 If you wan't a patch to apply now, here's how I modified the code from iBatis. (you most likely downloaded the source code with the binary) =20 I can send a patch to someone who ask (in a .jar file replacing ibatis-sqlmap-2.jar), but I would prefer that someone makes a real modification to the framework. I have an idea of how things should be changed to support nested iterate in a proper way. =20 To use my patch, do the following. table.someFiled =3D #list[].value# table.narrowField =3D #list[].list[].value# =20 =20 Please note that this modification was made on the iBatis 2.1.7. A bug still remains in my modifcations. I can make a new patch if anyone asks. This bug will make iBatis crash in this case.