The JTidy Servlet library is an open source suite of custom tags and servlets that integrate JTidy HTML syntax checker and pretty printer functionality into Servlet/JSP container.
Servlet/JSP Application development.
Application that need to show HTML manualy created by user or generated by third party appliations.
It can be used as a tool for cleaning up malformed and faulty HTML generated by your dynamic web application.
It can Validate HTML without changing the output and generate warnings for each page so you could identify JSP or Servlet that need to be fixed.
It can save you hours of time. The more HTML you write in JSP or Servlets, the more time you will save. Don't waste time manually looking for problems, figuring out why your HTML doesn't display like it should.
In addition to JTidy validation you could submit dynamically generated pages to online HTML validators for example W3C Markup Validation Service, WAVE Accessibility Tool or WDG HTML Validator even if you are behind the firewall.