7.3.6 Using JSP Tag Libraries 2.3.8

See the light - agile, industrial strength, rapid web application development made easy

(Quick Reference) # 7.3.6 Using JSP Tag Libraries - Reference Documentation Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari Version: 2.3.8 ## 7.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 the `taglib` directive:
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
Then you can use it like any other tag:
    <fmt:formatNumber value="${10}" pattern=".00"/>
With the added bonus that you can invoke JSP tags like methods:
    ${fmt.formatNumber(value:10, pattern:".00")}
| Quick Reference (hide)