On Thu, Sep 11, 2003 at 09:04:11AM -0700, Mick Knutson wrote: } I have a Value Object that contains a starting java.util.Date and ending } java.util.Date. } I am using java.lang.String objects in my DynaForm and my JSP. } I currently add the dates to the DynaForm manually, and then perform a } copyProperties(). But the copyProperties fails with a type mismatch. } } So, what is the best way to convert these 2 types back and forth when my } ValueObject _has_ to be a Date object?
Making it possible to copy from the DynaForm is easy, just provide a set method in your value object that takes a string and does the conversion. It can still have a setter that takes a Date as well. Copying the other way may or may not be handled by toString() (not sure of the implementation). } Thanks } Mick Knutson --Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

