Return-Path: Delivered-To: apmail-jakarta-taglibs-dev-archive@www.apache.org Received: (qmail 3398 invoked from network); 19 Oct 2003 11:11:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Oct 2003 11:11:14 -0000 Received: (qmail 62201 invoked by uid 500); 19 Oct 2003 11:11:11 -0000 Delivered-To: apmail-jakarta-taglibs-dev-archive@jakarta.apache.org Received: (qmail 62170 invoked by uid 500); 19 Oct 2003 11:11:11 -0000 Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Developers List" Reply-To: "Tag Libraries Developers List" Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 62157 invoked from network); 19 Oct 2003 11:11:11 -0000 Received: from unknown (HELO hall.mail.mindspring.net) (207.69.200.60) by daedalus.apache.org with SMTP; 19 Oct 2003 11:11:11 -0000 Received: from user-119a245.biz.mindspring.com ([66.149.8.133] helo=multideck.com) by hall.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1ABBSo-0001a7-00 for taglibs-dev@jakarta.apache.org; Sun, 19 Oct 2003 07:11:11 -0400 Message-ID: <3F927169.7020807@multideck.com> Date: Sun, 19 Oct 2003 07:11:37 -0400 From: "Frederick N. Brier" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: taglibs-dev@jakarta.apache.org Subject: Addition to allow alternate ExpressionEvaluators Content-Type: multipart/alternative; boundary="------------040400090503010300010508" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------040400090503010300010508 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit We are using Webwork2 as an app framework on a project (I am actually using Struts on a different project). It would be great to be able to use the JSTL with Webwork's value stack. Apparently the JSTL (at least version 1.0) was designed to allow swapping out ExpressionEvaluator(s), but is missing one small key method in ExpressionEvaluatorManager. /** * Enhancement to allow plugging in alternate expression engines. * @param expressionEvaluator implements the Jakarta JSTL * ExpressionEvaluator interface for your app framework. */ public static void installExpressionEvaluator( ExpressionEvaluator expressionEvaluator ) { nameMap.put( EVALUATOR_CLASS, expressionEvaluator ); } The default behavior is unchanged. If someone could add this, I would be extremely grateful. This is integrated into Webwork with 2 small classes: A ServletContextListener, that calls the above method and installs the WebworkExpressionEvaluator, and the WebworkExpressionEvaluator itself. Add the listener to your web.xml and you are done. The above 2 classes have already been posted to the Webwork mailing list. If desired, I could write up a How-To page. Thank you for your help. Frederick N. Brier Multideck Corporation --------------040400090503010300010508--