JSP tips

1. Параметр trimDirectiveWhitespaces поможет убрать пустый строки, появляющиеся на месте JSP-директив в коде результирующей страницы;

some.jsp:
<%@ page trimDirectiveWhitespaces="true" %>
web.xml:
<jsp-config>
    <jsp-property-group>
        <url-pattern>*.jsp</url-pattern>
        <trim-directive-whitespaces>true</trim-directive-whitespaces>
    </jsp-property-group>
</jsp-config>
2. Версия JSP:
JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion();