programming/jstl

[jstl] fmt_rt와 functions의 사용

labj 2014. 5. 29. 08:41

[jstl] fmt_rt와 function의 사용



* fmt_rt
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<fmt:formatNumber value="${resultMap.mileageSum}" pattern="###,###,###" />

* functions
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
${fn:length(coupons)}
${fn:replace(fn:escapeXml(resultMap.faq.contents),newLineChar,'<br />')}
${fn:substring(list.regDay,0,10)}
${fn:replace(fn:escapeXml(QNA[0].CONTENT),newLineChar,'<br />')}
<c:set var="email_ary" value="${fn:split(member.email,'@')}" />

[jstl] fmt_rt와 function의 사용