Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8BEB51058A for ; Fri, 14 Mar 2014 09:57:53 +0000 (UTC) Received: (qmail 7403 invoked by uid 500); 14 Mar 2014 09:57:52 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 5340 invoked by uid 500); 14 Mar 2014 09:57:39 -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 5167 invoked by uid 99); 14 Mar 2014 09:57:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 09:57:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ossuer.k@gmail.com designates 209.85.192.65 as permitted sender) Received: from [209.85.192.65] (HELO mail-qg0-f65.google.com) (209.85.192.65) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 09:57:29 +0000 Received: by mail-qg0-f65.google.com with SMTP id z60so785602qgd.0 for ; Fri, 14 Mar 2014 02:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Sk4qx1LDIMlqJ4o6VtgWxB6DxCnetBVvyjrYcq9IogM=; b=duTFxREa6yymeuYm+ddYyXLZBMypT9/dJbhVN3UkT/zTwoYjHC84cwWomHC7FGTP53 Awrg5rB67K6s6VI8x3Rm1PC3KEbNElrOIcy3s2bgj6I0Kn4I/+nijnnrF6uTmswUeIPr fH3z/OHXmfNUvF+zNqp6zI4xpiQkI6JETvofLKhj9+tAb6t2TByMx1u+/5xWqn31lE7D H80RUQIh4Ob0UKmD7hrSz4b7PWzjDqjQyCm+dwQzYRaRFUeTAu28QgeVASvF+XFt+86s QI6OcdKBWK4t71t+7him14ZAqvNY+bIDp+YNP3V/EdAjXWXGWRpsw1LnIcruGTIE7dg9 2tQQ== MIME-Version: 1.0 X-Received: by 10.224.135.132 with SMTP id n4mr988587qat.97.1394791028181; Fri, 14 Mar 2014 02:57:08 -0700 (PDT) Received: by 10.224.124.196 with HTTP; Fri, 14 Mar 2014 02:57:08 -0700 (PDT) Date: Fri, 14 Mar 2014 18:57:08 +0900 Message-ID: Subject: A problem on Iterator tag. From: K OSSUser To: user@struts.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using Struts2.3.15 and I had a problem then tested a simple jsp. I expected "1, 2, , 3," but the result was "1, 2, 2, 3,". Test.jsp ------------------------------------------------------------------- , ------------------------------------------------------------------- I changed below class then it was fixed. org.apache.struts2.components.IteratorComponent#start ------------------------------------------------------------------- // if ((var != null) && (currentValue != null)) { <= Old. if (var != null) { // <= New. //pageContext.setAttribute(id, currentValue); //pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE); putInContext(currentValue); } ------------------------------------------------------------------- I hope, this will be useful. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org