BeanUtils.copyProperties(myBusinessBean,form)) is copying DynaValidatorForm
String values to the myBusinessBean which is having the right data types.
But in validator.xml, I am validating the DynaValidatorForm properties to
check if user is entering the right value i.e Double. which is wrong.
I think I am missing something here.
Please, explain. thanks.
From: "Hubert Rabago" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: Re: formbean of double type value chages when submitting the form
Date: Fri, 24 Mar 2006 08:49:50 -0600
On 3/24/06, fea jabi <[EMAIL PROTECTED]> wrote:
> thankyou for your response and clear expaination.
>
> If I use String for the formbean do I have to convert it to Double
before i
> validate?
>
> Is there an easier way to convert all form-properties in the form at the
> same time?
Yes. BeanUtils.copyProperties().
Hubert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]