Web tier: servlets, JSP, Web frameworks: JDOM for printing HTML?
I've been using Tapestry's HTMLWriter in my custom JSP tags just because it's so much nicer then manually printing HTML, but it's a bit lacking. Mainly because it does HTML, and I would really like XHTML, and it doesn't allow chaining. How inneficiant would it be to build up a DOM every time a tag is called? Anyone ever thought about doing this before? Thanks!
Have you ever looked at JTidy ? From what I've heard, it's fairly robust. HTH,