This example shows how to perform custom validation on both the client and server
sides. To perform custom client-side validation, you must write
a client-side JavaScript function and plug it into a fieldvalidator tag. The same is
done for the server-side validation but the function is written in Java, however.
This custom validation example simply checks the City value and ensures that it starts with
the letter 'Z'.
Click on the Submit button to see the exampe in action!