On Mon, 25 Nov 2002, Slava_L wrote:
> Date: Mon, 25 Nov 2002 19:01:26 +0800 > From: Slava_L <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: AW: java.sql.Date again!! > > But is it possible to hide DateWrapper behind java.sql.Date ? i wish to use > JDBC type in my FormBean You really don't want to do that. Consider the case where your user types in an invalid date (no matter what particular design format you choose). What users expect is that the input form will be redisplayed (with error messages), with the originally entered data redisplayed. That cannot happen if the form bean property is a java.sql.Date. In general, if you're going to use an HTML text input field to accept data, the corresponding form bean property should be a String. Do the conversions in the Action that receives and processes the form (the BeanUtils.copyProperties() method is very useful for this purpose). Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

