2014/05/02

jstl을 이용하는 jsp에서 라인피트(\n), 캐리지리턴(\r), 줄바꿈(\r\n) 값 replace 방법


< 요약 >
import taglib
[% 
pageContext.setAttribute("crlf", "\r\n"); 
pageContext.setAttribute("cr", "\r"); 
pageContext.setAttribute("lf", "\n"); 
%] 

${fn:replace(문자열, crlf, [br/])} 

댓글 없음:

댓글 쓰기