jsp 코딩 시 사용했던 jstl 부분이나 스크립트 릿 부분 등이 html 변환 후 줄바꿈이나 공백 등으로 표기가 되어 보기도 싫고, html 소스가 보기 싫어 지는 등의 문제로 짜증이 나서 알아본 결과....
jsp2.1 버전 부터는 trimDirectiveWhitespaces 라는 기능이 생겨서 html 변환 시 자동으로 없애준다.. -0-
사용법은 각 페이지 별로 페이지 디렉티브에
<%@ page trimDirectiveWhitespaces="true" %> 와 같이 작성하여 주는 방법이 있고,
또는 web.xml 의 jsp-config 를 통하여 작성해준다.
jsp2.1 버전 부터는 trimDirectiveWhitespaces 라는 기능이 생겨서 html 변환 시 자동으로 없애준다.. -0-
사용법은 각 페이지 별로 페이지 디렉티브에
<%@ page trimDirectiveWhitespaces="true" %> 와 같이 작성하여 주는 방법이 있고,
또는 web.xml 의 jsp-config 를 통하여 작성해준다.
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<trim-directive-whitespaces>true</trim-directive-whitespaces>
</jsp-property-group>
</jsp-config>


