♣ Tech & Biz Salon/Tech

JSTL에서 textarea 줄바꿈 문자 replace

TasteGod 2013. 4. 11. 11:41

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/>')}