jstl 커스텀 태그? 만들기
상단에
<%@ taglib prefix=”m” uri=”/WEB-INF/tlds/method.tld” %>
tlds/method.tld 파일에
1**2
기술한다
해당 내용은
NumberConv 라는 class 파일안에
makeMonery 라는 메소드를 호출 하는 것이다.
public static String makeMoney(String num) { try { num = divideComma(num.trim(), 3); } catch (Exception e) { } return num; }
jsp 페이지에서
${m:makeMoney(online.svcCost)}
이렇게 사용하면 된다.
pom.xml
taglibs standard 1.1.2 This article is licensed under CC BY 4.0 by the author.