Is there any built-in mechanism for easily highlighting fields in a form which have invalid data? Specifically I want to perform an AJAX request to a servlet which then returns JSON, and use that JSON object to tell the form which fields have invalid data. Any examples of this?

Thanks