On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote:
Hi Sorry for that incomplete mail. I am not getting any excetption and that particular field is accepting everthing like characters and getting saved in the database as '0', I guess thats the default value for that field because I have defined that corresponding property in the Action Form as a 'Double'
If you've defined your property as a Double then BeanUtils population will have tried to convert the invalid String value from the request into a Double in your ActionForm and failed - leaving it set to zero. Validator kicks in after population and validates whats in the ActionForm and it expects a String and will convert your ActionForm's Double property back to a String which would be "0.0" - that will always pass the double validation (but fail integer validation :-) For this to work you need to define the property in your ActionForm as a String, not a Double. Niall
Thanks Antony
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]