aspose file tools*
The moose likes Struts and the fly likes Specify Error Message Generated By Automatic Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Specify Error Message Generated By Automatic Validation" Watch "Specify Error Message Generated By Automatic Validation" New topic
Author

Specify Error Message Generated By Automatic Validation

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am trying to put entries to the MessageResource.properties file for the error messages generated by the automatic validation. I could find examples for email and date:
errors.email={0} is an invalid e-mail address.
errors.date={0} is not a date.
Nonetheless, I used "mask" to provide a number of validation rules. How do I specify those error messages? (I used mask several times.)
[ July 03, 2003: Message edited by: JiaPei Jen ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Specify Error Message Generated By Automatic Validation