Thursday, April 24, 2008

Form Validation Error Message

Use SpringFramework, SimpleFormController, and CustomDateEditor.

When the date input doesn't match the specified format, it will report an error message. The message is very much in Java developer's language, not user oriented.

To replace the message with your own, just put a line like that in your messages.properties,

typeMismatch=Invalid or incomplete input.

No comments: