What's in your ApplicationResources.properties file? Do you have the following messages defined?
errors.invalid={0} is invalid.
errors.maxlength={0} can not be greater than {1} characters.
errors.minlength={0} can not be less than {1} characters.
errors.range={0} is not in the range {1} through {2}.
errors.required={0} is required.
errors.byte={0} must be an byte.
errors.date={0} is not a date.
errors.double={0} must be an double.
errors.float={0} must be an float.
errors.integer={0} must be an integer.
errors.long={0} must be an long.
errors.short={0} must be an short.
errors.creditcard={0} is not a valid credit card number.
errors.email={0} is an invalid e-mail address.
Did you define the validator plugin in your struts-config.xml file? Did you define validations in a validator.xml file?
For more details, read the
Struts Validator Guide.
Also, if you're going to use JavaScript to display the errors (not recommended), you need to remove the errors.header, prefix, suffix, and footer.
[ November 21, 2007: Message edited by: Merrill Higginson ]