Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 53121 invoked from network); 9 Sep 2003 15:17:31 -0000 Received: from unknown (HELO anchor-post-32.mail.demon.net) (194.217.242.90) by daedalus.apache.org with SMTP; 9 Sep 2003 15:17:31 -0000 Received: from kremvax.demon.co.uk ([80.177.9.193] helo=kremvax.kremvax.net) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 19wjWF-0009Ha-0W; Tue, 09 Sep 2003 15:30:59 +0100 Received: by kremvax.kremvax.net (Postfix, from userid 1000) id DBFAC1302B; Tue, 9 Sep 2003 15:30:55 +0100 (BST) Subject: Re: [jexl] size method unit test failing From: "Mark H. Wilkinson" To: Jakarta Commons Developers List Cc: tobrien@discursive.com In-Reply-To: <4B1CA35F-E2C4-11D7-A788-000A95A01192@optonline.net> References: <4B1CA35F-E2C4-11D7-A788-000A95A01192@optonline.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1063117855.1852.51.camel@kremvax.kremvax.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 09 Sep 2003 15:30:55 +0100 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 2003-09-09 at 13:51, Geir Magnusson Jr. wrote: > > I think that just using size() is the right way to go. The only reason I can see to support foo.length for arrays is if the JSP expression language supports it, on the basis that Jexl claims to be an extension of the JSP expression language. I can't see an explicit statement that foo.length should be treated specially in the section of the JSP 2.0 spec that describes evaluation of . and [], so my conclusion is that it's not supposed to be part of the standard expression language. Does anyone have evidence to the contrary? If not then I agree with geir that the size function would do. On a related point, JSTL 1.1 has added some standard functions to the expression language, but they've gone for a length() function rather than the size() function that Jexl had introduced. Would it make sense to deprecate size() in favour of length() and JSP EL/JSTL compatibility? -Mark.