본문 바로가기

♣ Tech & Biz Salon/Tech

JSTL에서 textarea 줄바꿈 문자 replace

from : http://stackoverflow.com/questions/58054/how-can-i-replace-newline-characters-using-jsp-and-jstl


<% pageContext.setAttribute("newLineChar", "\n"); %>

......

${fn:replace( strData, newLineChar, '<br/>')}