This approach uses Web Design Group's HTML validator, which can be installed on your local machine (available at http://www.htmlhelp.com/tools/validator/ ).
You hook it up to your servlets so that the HTML output your servlet produces is automatically validated, and the validation output and full HTML source (with highlighted errors) is appended to the normal output and sent to the browser.
Enjoy!
-- JasonHildebrand? - 20 Sep 2002