Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 25770 invoked from network); 4 Apr 2003 19:01:02 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Apr 2003 19:01:02 -0000 Received: (qmail 4132 invoked by uid 97); 4 Apr 2003 19:02:56 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 4125 invoked from network); 4 Apr 2003 19:02:56 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 4 Apr 2003 19:02:56 -0000 Received: (qmail 25198 invoked by uid 500); 4 Apr 2003 19:00:54 -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 25160 invoked from network); 4 Apr 2003 19:00:53 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 4 Apr 2003 19:00:53 -0000 Received: (qmail 1560 invoked by uid 1059); 4 Apr 2003 19:00:58 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 4 Apr 2003 19:00:58 -0000 Date: Fri, 4 Apr 2003 11:00:57 -0800 (PST) From: "Craig R. McClanahan" To: Jakarta Commons Developers List Subject: Re: [beanutils] default converters for File and URL? In-Reply-To: Message-ID: <20030404105954.X1254@icarus.apache.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 4 Apr 2003, Joe Germuska wrote: > Date: Fri, 4 Apr 2003 11:03:41 -0600 > From: Joe Germuska > Reply-To: Jakarta Commons Developers List > To: Jakarta Commons Developers List > Subject: Re: [beanutils] default converters for File and URL? > > >So once a DateConverter is made, is the 'proper' way to handle the > >"YY/DD/MM" style thing to have a custom Locale? Or should I pursue the > >idea of optional arguments being settable on converters? > > I think this has some promise. After all, I can imagine using it via > a digester rule like > format="yyyy-MM-dd" /> This was part of the use case that started > our whole discussion. I think setting a format explicitly is much > safer than counting on Locales. > The interesting part of this issue (and why there's no default DateConverter) is deciding what String format to use by default. I would have leaned towards YYYY-MM-DD because that's what java.sql.Date does, but it's not particularly user friendly for input fields. > Joe Craig --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org