8.3.6 Using JSP Tag Libraries - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.9
8.3.6 Using JSP Tag Libraries
In addition to the simplified tag library mechanism provided by GSP, you can also use JSP tags from GSP. To do so simply declare the JSP to use with thetaglib directive:<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>grails.gsp.tldScanPattern setting. It accepts a comma separated String value. Spring's PathMatchingResourcePatternResolver is used to resolve the patterns.For example you could scan for all available tld files by adding this to application.groovy:
grails.gsp.tldScanPattern='classpath*:/META-INF/*.tld,/WEB-INF/tld/*.tld'
build.gradle:
runtime 'javax.servlet:jstl:1.1.2'
runtime 'taglibs:standard:1.1.2'<fmt:formatNumber value="${10}" pattern=".00"/>${fmt.formatNumber(value:10, pattern:".00")}