> From: Paul Barry [mailto:[EMAIL PROTECTED] 
> Are their other ways to handle this, so I don't need 2 properties?

String properties in the Form, and a utility class to do the conversions
when you need to use it as a Date.  (Possibly a BeanUtils Converter to
do it as part of 'copyProperties' if you have a Date in your business
object?) Any time I've had the idea to use other than String, String[]
or Boolean in an ActionForm, I've ended up changing back.

Or separate fields for month/day/year to keep the users from messing it
up. ;)  Then you can validate on ranges of integers, and string the bits
together to make a Date when you need one.

Then again, I rarely need Dates... in my database, dates are stored as
the number of integers since 12/31/1967.  (I considered offering a prize
to the first person to guess which one, but it's too easy to Google.)

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to