Archive for April, 2007

Note to self: use trimDirectiveWhitespaces in JSPs after switching to Tomcat 6

Wednesday, April 11th, 2007

So JSPs have the annoying property of preserving all whitespace from the source JSP file and outputting it. As soon as your JSP gets at all complex, with conditional logic, variables being set, and so on, you’ll find your HTML source output gets filled more and more with blank lines.

JSP 2.1 to the rescue! […]