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
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!!!
-
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
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
PROTECTED]>
escreveu:
> --- Jim Barrows <[EMAIL PROTECTED]> escreveu:
> >
> >
> > > -Original Message-
> > > From: Leandro Melo
> > [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, September 08, 2004 4:28 PM
> > > T
--- 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
> -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
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
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
--
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
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
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
> >>
> >
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
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
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
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
16 matches
Mail list logo