commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject RE: DynaValidatorForm.validate() does not seemt o validate Integers when called from DispatchAction [Re: Problem validating form manually in DispatchAction]
Date Fri, 10 Oct 2003 15:35:00 GMT
> It seems that the DynaValidatorForm.validate() method when called from
> DispatchAction does validate Strings, but not Integers

I'm not sure exactly what the problem is, but most of the Struts
developers will say to use only String properties in the ActionForms.
If you're trying to validate an Integer, what happens if the user puts
'ABC' in the field?  If it fails validation, you need to be able to
re-display the "bad" input.

I use LookupDispatchAction, but not modules, with DynaValidatorForms,
but have never used the <set-property> tag you have commented out.

Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message