Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 56903 invoked from network); 2 Nov 2005 20:39:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 20:39:41 -0000 Received: (qmail 32558 invoked by uid 500); 2 Nov 2005 20:39:29 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 32465 invoked by uid 500); 2 Nov 2005 20:39:28 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 32428 invoked by uid 99); 2 Nov 2005 20:39:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 12:39:28 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of hrabago@gmail.com designates 66.249.82.207 as permitted sender) Received: from [66.249.82.207] (HELO xproxy.gmail.com) (66.249.82.207) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 12:39:23 -0800 Received: by xproxy.gmail.com with SMTP id s19so403462wxc for ; Wed, 02 Nov 2005 12:39:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hZrOav9hkNJpt1Ok05ysA2+ADAhv8dOEYjPbPy4WhOKapezRKfW4YhYKFxgZYZvBKpSBa5SBEjoKhRjChyYOGzc+NONItaL7hn1AbN0A+TWINk9EF8IWsypOkiazogZIMRDcITRMjAyVaBAtItHkkNQohoDL93whrlBRzXeTKNY= Received: by 10.65.180.18 with SMTP id h18mr2184665qbp; Wed, 02 Nov 2005 12:39:06 -0800 (PST) Received: by 10.64.150.13 with HTTP; Wed, 2 Nov 2005 12:39:06 -0800 (PST) Message-ID: <7b809eef0511021239g5d78020ck830890bffe9ce06e@mail.gmail.com> Date: Wed, 2 Nov 2005 14:39:06 -0600 From: Hubert Rabago To: Struts Users Mailing List Subject: Re: java.util.Date in Action Form Bean In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <98432.1130555421886.JavaMail.?@fh058.dia.cp.net> <7b809eef0511020757p20d758c2seabc6ea1d828fd40@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N FormDef works fine with Validator. For the most part they won't even be aware of each other. There's no overlap in functionality and they won't get in the way of one another. Hubert On 11/2/05, Yujun Liang wrote: > Hubert, your input is quite valuable. But I just wonder this suppose to b= e > handled by Struts itsself, > > You may also place a bean instance on your form, and use nested property > references. For example, you might have a "customer" bean on your > ActionForm, and then refer to the property > "customer.name" > in your presentation page. This would correspond to the methods > customer.getName() and customer.setName(String Name) on your customer bea= n. > See the Apache Struts Taglib Developer Guides for more about using the > nested syntax. > http://struts.apache.org/struts-core/userGuide/building_controller.html#a= ction_form_classes > > Do you know whether this BeanDef works with Validator? > > Thanks. > > On 11/3/05, Hubert Rabago wrote: > > > > [ Oh, I missed my cue! :) ] > > > > If your form bean maps to a business object (and it sounds like it > > does since you're using BeanUtils), you can try FormDef: > > http://formdef.dev.java.net/ > > > > You won't need to create a separate ActionForm class or manually > > define your DynaActionForm, FormDef will configure it for you. You > > can also specify how you want your fields formatted, including dates > > and numbers, and use FormDef's conversion methods in place of > > BeanUtils. > > > > Hubert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org