You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brian McSweeney <br...@aurium.net> on 2003/06/05 11:53:30 UTC

Validating a double

Hi all,

I'd like to validate a double using the validator. However, 
does this mean that the field in the ValidatorForm should 
be a double (primary data type) or a java.lang.Double. 
Or perhaps I should take the field in as a string and try 
to validate it as a double? I only say this because I glanced 
at a mail the other day which said:

*there should be a big warning saying all fields in your forms 
should be strings*

any help is much appreciated,
cheers,
Brian