How to remove blank lines from the JSP output
August 24, 2007A source of annoyance with the JSP output, where all the JSP directives are replaced with blank lines in the final output has been addressed in JSP 2.1. Now if you want to get rid of all the blank lines in your JSP output, simply add the line <%@page trimDirectiveWhitespaces="true"%> to the top of your JSP. I wish this was the default.
