Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 86468 invoked from network); 31 Aug 2002 06:47:21 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 31 Aug 2002 06:47:20 -0000 Received: (qmail 10162 invoked by uid 97); 31 Aug 2002 06:48:00 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 10120 invoked by uid 97); 31 Aug 2002 06:47:59 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 10108 invoked by uid 98); 31 Aug 2002 06:47:58 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Server-Uuid: 6E802067-ECFC-4FC2-A617-DD5220DD9CBB Message-ID: <7382FCA44E27D411BD4A00508BD68F9504BB0C0B@pigeon.tumbleweed.com> From: "Martin Cooper" To: "'commons-dev@jakarta.apache.org'" Subject: [Jelly] Scopes, contexts and implicit objects Date: Fri, 30 Aug 2002 23:46:23 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 116EB8CE134910-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm working on adding pluggable scopes to Jelly (per the JIRA bug report), and have some of this figured out and implemented. Regarding the Scope interface outlined in the JIRA report, I have added removeVariable() and getVariableNames(), for parity with the Servlet interface, and implemented Scope classes for request, session and application. There are some areas, though, where I'm a little unsure of which way to go. 1) Currently, JellyContext.getVariable() actually invokes findVariable() to search parent contexts, if they are inheritable. This seems to conflict with the corresponding Servlet methods, where get*() references only the current context, while find*() allows a search up through parent contexts. 2) Certain "scopes" seem to be currently dealt with as explicit variables by themselves. For example, "context" and "systemScope" seem to be handled as variable prefixes. -- Martin Cooper -- To unsubscribe, e-mail: For additional commands, e-mail: