Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
That's because you don't know for how many hours i've been sitting in from of my computer and screamming at it, haha!!! --- Bryce Fischer <[EMAIL PROTECTED]> escreveu: > Then you are doing better than I did. It took me > several iterations to > figure it out. I ended up testing with two differ

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
Then you are doing better than I did. It took me several iterations to figure it out. I ended up testing with two differnt forms, putting breakpoints in my Converters to figure out what was going on... Leandro Melo wrote: I almost understand it in the other way, haha... Now things are clear!!! -

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
I almost understand it in the other way, haha... Now things are clear!!! --- Bryce Fischer <[EMAIL PROTECTED]> escreveu: > Leandro Melo wrote: > > >I got one doubt in your code when used in a > situation > >that i mentioned (transforming data from action > form > >to dto). > >When date comes

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
Leandro Melo wrote: I got one doubt in your code when used in a situation that i mentioned (transforming data from action form to dto). When date comes from action form, they usually come in Strings, but in your method you verify value instanceof Date... This will never happen, as the value comes

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
PROTECTED]> escreveu: > --- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > > > > -Original Message- > > > From: Leandro Melo > > [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, September 08, 2004 4:28 PM > > > T

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
--- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > -Original Message- > > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 4:28 PM > > To: Struts Users Mailing List > > Subject: Re: Acti

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 4:28 PM > To: Struts Users Mailing List > Subject: Re: ActionForm data type X BeanUtils -> using Dates > > > I got one doubt in your code when u

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
I got one doubt in your code when used in a situation that i mentioned (transforming data from action form to dto). When date comes from action form, they usually come in Strings, but in your method you verify value instanceof Date... This will never happen, as the value comes in String. Am i s

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
The custom converter is done independently of the action, form or DTO. First step is to implement the interface org.apache.commons.beanutils.Converter. Keep in mind that the converter you are writing uses the appropriate converter for the original class. So, if you were converting from a String

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bill Siggelkow
-- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:21 AM To: struts jakarta Subject: ActionForm data type X BeanUtils -> using Dates Hi, i believe that a lot of developers use BeanUtils to copy the data from ActionForms to the specific DTOs. I've used thi

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bill Siggelkow
form as datePayment so that it does not get copied to domain object. -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:21 AM To: struts jakarta Subject: ActionForm data type X BeanUtils -> using Dates Hi, i believe that a lot of de

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
gt; >> -Original Message- > >> From: Leandro Melo > [mailto:[EMAIL PROTECTED] > >> Sent: Wednesday, September 08, 2004 10:21 AM > >> To: struts jakarta > >> Subject: ActionForm data type X BeanUtils -> > using Dates > >> > >

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Jason King
ConvertUtils.register(...) to register it. That's what I do anyhow. -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:21 AM To: struts jakarta Subject: ActionForm data type X BeanUtils -> using Dates Hi, i believe that a lot of develo

Re: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Bryce Fischer
EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:21 AM To: struts jakarta Subject: ActionForm data type X BeanUtils -> using Dates Hi, i believe that a lot of developers use BeanUtils to copy the data from ActionForms to the specific DTOs. I've used this approach, but right now i'm facin

RE: ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Desai, Sunny
the variable for this date in form as datePayment so that it does not get copied to domain object. -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:21 AM To: struts jakarta Subject: ActionForm data type X BeanUtils -> using Dates Hi

ActionForm data type X BeanUtils -> using Dates

2004-09-08 Thread Leandro Melo
Hi, i believe that a lot of developers use BeanUtils to copy the data from ActionForms to the specific DTOs. I've used this approach, but right now i'm facing a problem, not a big one. I've allways been confused about working with dates in Java. I got a jsp where the user must input a date in the