Return-Path: Delivered-To: apmail-jakarta-taglibs-dev-archive@jakarta.apache.org Received: (qmail 20191 invoked by uid 500); 13 Mar 2001 20:25:38 -0000 Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: taglibs-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 20182 invoked from network); 13 Mar 2001 20:25:35 -0000 Received: from mail2.multiactive.com (HELO mail.multiactive.com) (204.239.26.9) by h31.sny.collab.net with SMTP; 13 Mar 2001 20:25:35 -0000 Received: from multiactive.com (dhcp-42.multiactive.com [204.239.27.59] (may be forged)) by mail.multiactive.com (8.9.3/8.9.3) with ESMTP id MAA09391; Tue, 13 Mar 2001 12:20:57 -0800 Message-ID: <3AAE8220.3997D11F@multiactive.com> Date: Tue, 13 Mar 2001 12:25:04 -0800 From: Marius Scurtescu Organization: Multiactive Software Inc. X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: ro,en MIME-Version: 1.0 To: taglibs-dev@jakarta.apache.org CC: Tim Dawson Subject: Re: [VOTE] i18n taglib release References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi, I had a brief look at the taglib and here are my comments: 1. I don't think you should rely on log4j. None of the other taglibs do and it is an unnecessary dependency. You can use: pageContext.getServletContext().log(...) It may not be as versatile as log4j, but it is more than enough for this taglib. 2. There should be other ways to set the locale. Relying on the browser settings should be only one of them. In many applications the user explicitly chooses a language/locale and this setting is stored in the session. You should be able to set the locale based on such a setting. 3. Both LocaleHelper and ResourceHelper are derived from BodyTagSupport. This dependency is not needed and these classes are not tags. 4. The bundle name can be either set explicitly or it will be retrieved from an attribute/environment. May be the attribute and the environment names should be set explicitly as well instead of using hard coded values. This will make the JSP page more readable as well. I will implement 1 and 2 for my own use and I can send you the code if you are interested. Marius Tim Dawson wrote: > > I've made the update from the one comment that I received back - thanks to > Wong Kok Wai and Craig McClanahan for the feature and implementation > suggestions. > > Now there are three ways to set the resource bundle name (in this order of > priority): > 1. directly in the tag (necessary if using more than one bundle in a web > app) > 2. in an application-scoped attribute, as set in a load-on-startup servlet > 3. in an environment variable set in the deployment descriptor > > I don't know if its kosher for me to call a vote since I'm not a committer, > but I'd like to get this finalized so my company can move forward with the > comfort of knowing we're using a standard taglib! :-) > > Tim > > ------------------------------------------------------------------------------------------------------------------------------------ > Name: i18n.zip > i18n.zip Type: Zip Compressed Data (application/x-zip-compressed) > Encoding: base64 -- ------------------ Marius Scurtescu, Software Engineer Tel: (604) 899-2835 Fax: (604) 899-2899 mailto:marius@multiactive.com Multiactive Software Inc. http://www.multiactive.com ------------------ Attract and retain customers with Multiactive Software -- proud winners of PC WEEK's "Best of COMDEX" award. ------------------