struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter L. Berghold" <Pe...@berghold.net>
Subject Lack of Validator Messages SOLVED!!! ( was Re: ApplicationResource.properties file not be read?)
Date Mon, 05 Mar 2007 23:18:13 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



OK... I figured it out.  In all the text I was reading on the topic as I
was going along I totally missed the fact that there is a catalog of
messages that is **required** for the validator to work:

To wit:
errors.required={0} is required.
errors.minlength={0} cannot be less than {1} characters.
errors.maxlength={0} cannot be greater than {2} characters.
errors.invalid={0} is invalid.
errors.byte={0} must be a byte.
errors.short={0} must be a short.
errors.integer={0} must be an integer.
errors.long={0} must be a long.0.   errors.float={0} must be a float.
errors.double={0} must be a double.
errors.date={0} is not a date.
errors.range={0} is not in the range {1} through {2}.
errors.creditcard={0} is not a valid credit card number.
errors.email={0} is an invalid e-mail address.

Once I added those to my ApplicationResources file all was happy.

On to the next thing!


Thanks everybody for being patient with me!


- --
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold                                     Peter@Berghold.Net
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg        Yahoo IM: blue_cowdawg              ICQ: 11455958
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFF7KU0UM9/01RIhaARAlqFAJwMiQMg9s4dnZ7zz0d1wQr5rjtj3wCgnOfX
1nrF7Vji3+kiLfoc5qc4K6A=
=r1U9
-----END PGP SIGNATURE-----


Mime
View raw message