Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 27880 invoked from network); 18 Feb 2008 23:21:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2008 23:21:01 -0000 Received: (qmail 71564 invoked by uid 500); 18 Feb 2008 23:20:49 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 71522 invoked by uid 500); 18 Feb 2008 23:20:49 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 71511 invoked by uid 99); 18 Feb 2008 23:20:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 15:20:49 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 23:20:16 +0000 Received: by an-out-0708.google.com with SMTP id c37so490074anc.91 for ; Mon, 18 Feb 2008 15:20:24 -0800 (PST) Received: by 10.100.254.18 with SMTP id b18mr12570700ani.98.1203376824058; Mon, 18 Feb 2008 15:20:24 -0800 (PST) Received: from ?192.168.1.5? ( [75.171.132.128]) by mx.google.com with ESMTPS id 8sm12121547wrl.12.2008.02.18.15.20.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Feb 2008 15:20:23 -0800 (PST) Message-ID: <47BA122E.4010809@pontarelli.com> Date: Mon, 18 Feb 2008 16:18:06 -0700 From: Brian Pontarelli User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Struts Developers List Subject: Re: [struts-dev] [s2] OGNL abstracted (was Struts 2 and OGNL findings) References: <436d9a250709080750yf8cd59auabd1cf3320bad6aa@mail.gmail.com> <20070911005830.D0E341C8044@smtpauth01.csee.onr.siteprotect.com> <436d9a250709101902y129521efn2ac3a625eed87fca@mail.gmail.com> <47B62800.7010304@blueskyminds.com.au> <47B9B8DB.9000908@pontarelli.com> <47B9CF76.7030407@Newfield.org> In-Reply-To: <47B9CF76.7030407@Newfield.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yeah, this is one of the frustrations that most beginners encounter and that I'd really like to fix. I'd say it should be ${} or #{} so that it is the same notation in JSPs, XML, etc. In fact, I would think that it would make the most sense to follow the UEL convention such that ${} is immediately evaluated and #{} is evaluated later. So, in the case of XML and annotations, it would probably be #{} to follow the standard. Furthermore, you should be able to use ${} in XML and annotations and it is resolved immediately. This would be useful for servlet context values (context path, etc), statics, and other types of configuration. If anyone wants to help catalog all the OGNL usages, this will be the first step in getting this stuff changed. I started a wiki page to track all this information: http://cwiki.apache.org/confluence/display/S2WIKI/OGNL+replacement -bp Dale Newfield wrote: > Brian Pontarelli wrote: >> I've been trying to catalog all of the cases where OGNL exists and >> where it can be replaced. > > Since different ELs specify different mechanisms to state "this is an > expression to be evaluated", I wonder what we should do about the > delineating characters "%{"/"}" vs. "${"/"}" vs. "#{"/"}", etc. > > Right now in result specifications in struts.xml (when the result > supports it, and when parsed) we use ${} to say "this is an expression > to be evaluated" even though it's currently ognl (which uses %{}). > I'm of several thoughts regarding this. One one hand since it's OGNL > I think it should be %{}. On the other hand if we're contemplating > switching ELs maybe it should not be EL-specific so that the EL can be > changed without modifying all the expressions. > > So: Is it possible to have these change with the EL? Is it > desirable? If we want to use a single type for all ELs, which should > it be? > > -Dale > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org