Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 47129 invoked from network); 7 Oct 2008 14:41:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2008 14:41:19 -0000 Received: (qmail 71835 invoked by uid 500); 7 Oct 2008 14:41:08 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 71824 invoked by uid 500); 7 Oct 2008 14:41:08 -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 71802 invoked by uid 99); 7 Oct 2008 14:41:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 07:41:08 -0700 X-ASF-Spam-Status: No, hits=-3.9 required=10.0 tests=DNS_FROM_SECURITYSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.12.181.129] (HELO ws000774.tietoenator.com) (193.12.181.129) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 14:40:04 +0000 X-AuditID: c10cb581-000018a4000004dc-a9-48eb74ce0283 Received: from stingray.eu.tieto.com ([192.176.143.13]) by ws000774.tietoenator.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Oct 2008 16:40:14 +0200 Received: from maserati.eu.tieto.com ([192.176.143.19]) by stingray.eu.tieto.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 7 Oct 2008 16:40:38 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: SV: SV: Ognl versions Date: Tue, 7 Oct 2008 16:40:37 +0200 Message-ID: In-Reply-To: <42db7f0a0810070014s4775c966ge9a76075d00dd1c0@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SV: Ognl versions Thread-Index: AckoTH23CIH7SGbpQ6GrCuB7NQWXTgAPfBFQ References: <763ca2a0810020645q60db1f6dha41a749f4728e932@mail.gmail.com> <42db7f0a0810020842k6049ce85m4abf165b0cd35881@mail.gmail.com> <867e1f9a0810031531w2c6be580gb00c7fb137958549@mail.gmail.com> <48EA5A09.7000405@Newfield.org> <42db7f0a0810070014s4775c966ge9a76075d00dd1c0@mail.gmail.com> From: To: X-OriginalArrivalTime: 07 Oct 2008 14:40:38.0762 (UTC) FILETIME=[AA7BFCA0:01C9288A] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org Hi, We have a measureList that looks the same and it works! public SortedMap getMeasureList() { // man =3D =C4renden som skall konfigureras manuellt // uttagen =3D =C4renden som skall klarrapporteras efter manuell = konfigurering measureList.put(1, "=C4renden som skall konfigureras manuellt"); measureList.put(2, "=C4renden som skall klarrapporteras efter = manuell konfigurering"); return measureList; } /Gunnar =20 > -----Ursprungligt meddelande----- > Fr=E5n: Chris Pratt [mailto:thechrispratt@gmail.com]=20 > Skickat: den 7 oktober 2008 09:15 > Till: Struts Users Mailing List > =C4mne: Re: SV: Ognl versions >=20 > Just as an experiment, you might try renaming the method as a=20 > true JavaBean method. Maybe OGNL got more strict on it's=20 > interpretation of the spec. > (*Chris*) >=20 > On Mon, Oct 6, 2008 at 11:21 PM,=20 > wrote: >=20 > > Hi, > > I mean that the value is null now that I use ognl 2.7.2. When using=20 > > 2.6.11 the value is a correct map. > > > > This is in the model f=F6r the jsp page: > > SortedMap jobTypeList =3D new TreeMap > String>(); > > > > public SortedMap getjobTypeList() { > > jobTypeList.put(1, "F=F6rfr=E5gan"); > > jobTypeList.put(8, "VP-flytt"); > > // return this.getWc().getTypeAsText(); > > return jobTypeList; > > } > > > > /Gunnar > > > > > > > -----Ursprungligt meddelande----- > > > Fr=E5n: Dale Newfield [mailto:dale@newfield.org] > > > Skickat: den 6 oktober 2008 20:34 > > > Till: Bostrom Gunnar > > > Kopia: user@struts.apache.org > > > =C4mne: Re: SV: Ognl versions > > > > > > Gunnar.Bostrom@tietoenator.com wrote: > > > > The jobTypelist is empty, but it worked with 2.6.11=20 > version of ognl. > > > > The applications is our own. > > > > > > So you're saying that the updated version doesn't=20 > silently fail, and=20 > > > that's enough to condemn it? I would argue that that's an=20 > > > improvement. > > > > > > In fact, if you look in the source code for the exception=20 > stack you=20 > > > provide, this is by design: > > > > > > core/src/main/java/org/apache/struts2/components/ListUIBean.java: > > > > if (value =3D=3D null) { > > > > if (throwExceptionOnNullValueAttribute) { > > > > // will throw an exception if not found > > > > value =3D findValue((list =3D=3D null) ? = (String) > > > list : list.toString(), "list", > > > > "The requested list key '" + list + "' > > > could not be resolved as a > > > collection/array/map/enumeration/iterator type. " + > > > > "Example: people or people.{name}"); > > > > } > > > > else { > > > > // ww-1010, allows value with null value to > > > be compatible with ww > > > > // 2.1.7 behaviour > > > > value =3D findValue((list =3D=3D null)?(String) > > > list:list.toString()); > > > > } > > > > } > > > > > > So, in fact, what you're finding through your testing is a place=20 > > > where ognl 2.6.11 is doing the wrong thing. > > > > > > If you want silent failure, there's a flag to throw so=20 > that your app=20 > > > gets it. If you want to evaluate the correctness of a component,=20 > > > please ensure you're testing what you think you're testing. > > > > > > -Dale > > > > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > > For additional commands, e-mail: user-help@struts.apache.org > > > > >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org