Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 88959 invoked from network); 2 Jul 2007 00:24:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 00:24:09 -0000 Received: (qmail 94521 invoked by uid 500); 2 Jul 2007 00:23:56 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 94484 invoked by uid 500); 2 Jul 2007 00:23:56 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 94473 invoked by uid 99); 2 Jul 2007 00:23:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2007 17:23:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.124.115] (HELO web38004.mail.mud.yahoo.com) (209.191.124.115) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 01 Jul 2007 17:23:52 -0700 Received: (qmail 90404 invoked by uid 60001); 2 Jul 2007 00:23:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=22cqNxYnnXkpJSauTV3hoTyrlIgph+WQX+nyNUHT45XcaMYLeKpp+RUwCaXmOW6p2xwtOZtLy/bSVR4cABohRtnKw/B16LDiQe8pBkvizQKJ6UR4mse0bxqZ3K+sc/y9q6XvmDDQIKRLv/KVhJtb9JSGhQJjcekClKBqHUiTgDA=; X-YMail-OSG: yNav9XMVM1koHfYBbpXduKOrCH85mI1qAqQ05f0UuvNiNeG1XJlckfwRq2PUMFgpwmr4WRE0aDfnzYOO5de1wGSFWRXOjVcz01lQtmI572hBlSHUc.vTI15jbLLsGw-- Received: from [140.159.2.31] by web38004.mail.mud.yahoo.com via HTTP; Sun, 01 Jul 2007 17:23:31 PDT Date: Sun, 1 Jul 2007 17:23:31 -0700 (PDT) From: tom tom Subject: Re: Has anyone tried this in S2 - THIS LOOKS A BUG To: Struts Users Mailing List In-Reply-To: <46853469.5000503@fdar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <645040.90367.qm@web38004.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I did further investigation, I think this is a bug, I think this is a very scary bug. You dont need three iterators, I could reproduce this very easily, In your action class have the following, String[] testArray = new String[5]; testArray[0]="test0"; testArray[1]="test1"; testArray[2]="test2"; testArray[3]="test"; session.setAttribute("testArray",testArray); In your jsp have the following Value of the arry is
WHAT it prints is following Issue is for the 4th index also it prints test, it should print empty Value of the arry is test0 Value of the arry is test1 Value of the arry is test2 Value of the arry is test Value of the arry is test This is a scary behaviour for me, Has anyone reported this bug, Any JIRA issue raised. Thanks --- Ian Roughley wrote: > Take a look at the value stack via the debug tag. > > Usually the property tag will keep stepping through > the value stack > until a getter for the property is found (the object > for the current > iteration is placed on the top of the value stack). > Although, if you > are explicitly defining the object (via id and > #test) there shouldn't be > a problem. > > /Ian > > tom tom wrote: > > >Hi, > > > >I got three iterations which I tried as below in > the > >jsp, First two and Array of certain DTO and last > >iterator is a String array. There is no jsp > >compilation error, but the issue is it produced > >misleading results. > > > >Is there any limitation in S2 for the depth of the > >iteration. Is this way of using recommended? > > > >Sometimes where it is suppose to print empty value > it > >prints something else (looks like from the previous > >iterator) > > > > > >.... > >.... > > > >.... > >.... > > > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > >Park yourself in front of a world of choices in > alternative vehicles. Visit the Yahoo! Auto Green > Center. > >http://autos.yahoo.com/green_center/ > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > >For additional commands, e-mail: > user-help@struts.apache.org > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > For additional commands, e-mail: > user-help@struts.apache.org > > ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org