Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 50625 invoked from network); 27 Aug 2008 20:40:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 20:40:09 -0000 Received: (qmail 21834 invoked by uid 500); 27 Aug 2008 20:39:53 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 21819 invoked by uid 500); 27 Aug 2008 20:39:53 -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 21800 invoked by uid 99); 27 Aug 2008 20:39:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 13:39:52 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 20:38:54 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KYRnX-0000zO-Oz for user@struts.apache.org; Wed, 27 Aug 2008 13:39:23 -0700 Message-ID: <19189269.post@talk.nabble.com> Date: Wed, 27 Aug 2008 13:39:23 -0700 (PDT) From: laredotornado To: user@struts.apache.org Subject: Re: Struts date tag? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: laredotornado@gmail.com References: <19171360.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am asking if there is a tag which will create separate HTML form inputs for month, day and year. Thanks, - Dave Laurie Harper wrote: > > laredotornado wrote: >> Hi, >> >> Using pre-Struts 2, is there a tag that will create a date (month, day, >> and >> year)? What would I need to do in the ActionForm? In other words, it >> seems > > I'm not sure I understand; are you asking if there is a tag which will > create separate HTML form inputs for month, day and year? Or just > whether there is a tag which will allow editing of an action form > property of type Date? > >> like the ActionForm can only deal with String and boolean member fields. > > For Struts 1, the ActionForm fields should generally be just boolean, > String or collections (arrays/lists) of same, so that erroneous user > input can be preserved and re-displayed for correction. It's up to you > to handle type conversion from bool/string in the ActionForm to whatever > your model or business objects expect. You *can* use other data types, > but that generally leads to more problems than it solves. > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-date-tag--tp19171360p19189269.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org