struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter L. Berghold" <>
Subject Lack of Validator Messages SOLVED!!! ( was Re: file not be read?)
Date Mon, 05 Mar 2007 23:18:13 GMT
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.{0} is not a date.
errors.range={0} is not in the range {1} through {2}.{0} is not a valid credit card number.{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
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat -


View raw message